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 ▸

Why would I use dictionaries instead of a list?


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


How do you write code to implement a recursive fibonacci algorithm?


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.