I think this is what buran is suggesting.
This single line of code will repeat any code (indented by 4 spaces) below this line x10 times. Due to the way Python works, there is no need to close the loop with any code, the interpreter executes all indented code below the initial statement.
Let me know if this is not what you want.
Good Luck
Bass
This single line of code will repeat any code (indented by 4 spaces) below this line x10 times. Due to the way Python works, there is no need to close the loop with any code, the interpreter executes all indented code below the initial statement.
for x in range(10): Your code that you want repeated x10 should go here (note indentation) This line will also execute x10 This line is not indented and therefore will not execute x10There may be other ways of doing this but this solution is short and in a single line.
Let me know if this is not what you want.
Good Luck
Bass
"The good thing about standards is that you have so many to choose from" Andy S. Tanenbaum