There seems to be a problem with the following code:
n = [3, 5, 7]
indent preformatted text by 4 spacesfor i in x:
indent preformatted text by 4 spacesindent preformatted text by 4 spaces`print x[i]
In the console I get "index out of range. ". The purpose of the excersise is to learn using range in for loops, so when I put range instead of 'x' in the for statement, the code has no problem. But what is the mistake in the above code and what is the meaning of "index out of range? And please inform me of how to format the code text in the forum , so as the indentation can be seen by other users, since it's my first time posting here.Thank you in advance for your response.