(Jul-04-2019, 06:42 PM)Yoriz Wrote: That error happens when a string index used is not a valid index of the string.
In the next example the last index of'string'
is 5, using 6 gives the error.
>>> 'string'[6] Traceback (most recent call last): File "<stdin>", line 1, in <module> IndexError: string index out of range
Hello Yoriz,
Thank you for your help about the post and reply. How should I modify this order to make it done?
Best
(Jul-04-2019, 06:44 PM)metulburr Wrote: Based on your error secretNum[i] is going out of index. Although you shoukdnt be using range(len(sequence)) ever in python.
https://python-forum.io/Thread-Basic-Nev...n-sequence
Thank you very much for your help. I just wrote the order from the book, and not totally understood what was this order meaning? Based on the orders I provided, how to modify it to make it done?
Best