Need help with Python
Go to solution
Solved by ZEN,
To make it look more realistic, you could also randomize the sleep-time in between characters:
import timefrom random import randomtext = list("I have been waiting for you")std_slp = 0.2for char in text: print(char, end="") var = random() time.sleep(std_slp*var)This is in Python 3.3 as I don't know 2.7 so you would have to translate that.
-
Featured Topics
-
Topics
-
rickymohk ·
Posted in General Discussion0 -
Rbakker02 ·
Posted in General Discussion0 -
BaidDSB ·
Posted in General Discussion2 -
1
-
Mistr J ·
Posted in Troubleshooting3 -
2
-
4
-
2
-
coolbean28 ·
Posted in Graphics Cards8 -
awsomename999 ·
Posted in Troubleshooting4
-
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now