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)
How do I count from 1 to 10 with the line removed when it ends?? on python
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)