Skip to content
Advertisement

How do I count from 1 to 10 with the line removed when it ends? ( python ) [closed]

How do I count from 1 to 10 with the line removed when it ends?? on python

Advertisement

Answer

try that:

for i in range(11):
print(f'r{i}', end='')

To see the result slowly:

import time

for i in range(11):
    print(f'r{i}', end='')
    time.sleep(1)
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement