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

Answered by Tutor604297 D. Python tutor

898 Views

See similar Python Mentoring tutors

Related Python Mentoring answers

All answers ▸

What built-in types does python provide?


Create an rock, paper, scissors game. The user should input one option, and the computer should play randomly.


How would you write a while loop to print all even numbers from 1-10?


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


We're here to help

contact us iconContact usWhatsapp logoMessage us on Whatsapptelephone icon+44 (0) 203 773 6020
Facebook logoInstagram logoLinkedIn logo
Cookie Preferences