Give an example of a FOR loop

for i in ragne(0,10): print("Iteration No: ",i)

RP

Related Python Mentoring answers

All answers ▸

Print "Hello World!" ten times without typing (or pasting) the print function more than once


When to use a dectionary or a list


How would you get a piece of code to print the numbers 1 to 10


Ask the user for a number and output the smallest divisor, bigger than one, for the inputted number. Output "Prime" if the number is a prime number.