Numbers

Report a typo

Print the numbers from 1 to 10 on a single line: 1 2 3 4 5 6 7 8 9 10.

You can put all the numbers in a string and separate them by spaces (like "1 2") or use multiple objects inside the print() function (like print(1, 2)).
Write a program in Python 3





___

Create a free account to access the full topic