Skip to content
Sign UpLog In
This post is read-only. Explore Repls and connect with other creators on Community.View Community
The info in this post might be out of date, check out our docs instead. View docs
1

How to print 1 letter at a time.

OldWizard209
OldWizard209

Hi, I want to print one letter at a time with an interval of 0.3 seconds on the same line. How am I supposed to implement it in my program. I appreciate your kind help.

2 years ago
You are viewing a single comment. View All
2
adsarebbbad
adsarebbbad
import time, sys from time import sleep def sp(str): for letter in str: sys.stdout.write(letter) sys.stdout.flush() time.sleep(0.06) print()

from here

2 years ago
2
OldWizard209
OldWizard209

Thanks a lot

@adsarebbbad
I am sorry I can't mark your answer because
@RYANTADIPARTHI
answered first :)

2 years ago