Give an example of a FOR loop

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

RP

Related Python Mentoring answers

All answers ▸

What can be used to iterate through a list in python?


Write a function that takes an imput (call it usr_in), the user's age (usr_age) and the user's name (usr_nm) and outputs the following string: "Hi, My name is [usr_nm], I am [usr_age] years old, and my favorite number is [usr_in]"


What is the difference between a float and an integer variable type?


How do I check if a number is prime using a python program?