Last answered:

20 Nov 2023

Posted on:

19 Nov 2023

0

Indexing Element

Is indexing command different in python 3? Because I tried the command on P3 but received an invalid syntax.

1 answers ( 0 marked as helpful)
Instructor
Posted on:

20 Nov 2023

0

Hi Ihejieto!

Thanks for reaching out!

The basic indexing command in Python 3 should be the same as in previous versions of Python. If you're encountering an invalid syntax error, it might be due to a different issue rather than a change in the Python version.

If you can provide the specific code snippet that's causing the problem, it would be easier to pinpoint the exact cause of the error.

Looking forward to your answer!

Best,

Ivan

Submit an answer