197k views
3 votes
The author discusses the for loops. Write two lines of Python that use a for loop with the range function to print the values 5, 4, 3, 2, 1 all on one line . (Use help(print) to see how to use either end or sep parameter to add commas between numbers; note: in order for it to be no comma at the end, after 1, we need one last p rint that runs after the for loop).

User Narktor
by
3.2k points

1 Answer

4 votes

Answer:

Step-by-step explanation:

The statement will be :

for i in range(5,0):

print(i, end =" ")

User Monk L
by
4.2k points