Python Forum

Full Version: Homework help
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Prompt says: Using the print function, print the numbers 0 to 6 on a single row to the console.
Just look up the parameters for print(), especially, search: "Python print without newline"

Very easy!
There is nothing in the assignment that requires using multiple print statements to print the numbers 0 to 6.
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)?