How to Print Text Letter-By-Letter with Python! (quick && easy)

How to Print Text Letter-By-Letter with Python! (quick && easy)

Forward Slash

1 год назад

154 Просмотров

“time” is a built in module, no need for pip 0_o

ty 4 watchin yall
———————————————
IDE:

replit.com

———————————————
Code:

import time
def slowPrint(text):
for char in text:
print(char, end = "", Flush = True)
time.sleep(0.1)
print("/n")
slowPrint("Hello, Mars!")
Ссылки и html тэги не поддерживаются


Комментарии: