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

(Best) Create a loop:for loop with the range() or assigning a variable iwhile loop with variable(Okay) Create a function that prints 1 to 10(Least) Manually write it out

TD

Related Python Mentoring answers

All answers ▸

What is the difference between a for and a while loop?


What does __init__ mean?


Sort a given input of lowercase letters alphabetically


Whats the output of "for i in "hello world": print(i)" and why/how is this achieved