Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Homework help
#1
Prompt says: Using the print function, print the numbers 0 to 6 on a single row to the console.

Attached Files

Thumbnail(s)
   
Reply
#2
Just look up the parameters for print(), especially, search: "Python print without newline"

Very easy!
Reply
#3
There is nothing in the assignment that requires using multiple print statements to print the numbers 0 to 6.
Reply
#4
The option you want to use in the print statements is "end". Quick google search "python print end". Then you can see how to use a loop to do what you need. I assume you have been taught loops (while, for)?
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020