Rae
Rae

Reputation: 1

Python- advancing output to new line with for loop

I need to have the saying "It's all done." advance to the next line. I've tried everything I can think of and find in my book but the line is continued on the line of integers. This is my coding so far and everything works but I can't figure out how to advance the saying to the next line. Thanks for your help!

for x in range(100,-1,-10) :
    print(x, end=' ')

print('It\'s all done.')

Upvotes: 0

Views: 81

Answers (1)

Remi Guan
Remi Guan

Reputation: 22302

Like this?

for x in range(100,-1,-10) :                                                    
    print(x, end=' ')    

print('\nIt\'s all done.')   

Upvotes: 2

Related Questions