3
rated 0 times
[
3]
[
0]
/ answers: 1 / hits: 18465
/ 2 Years ago, tue, june 14, 2022, 8:41:12
Is there a way to execute multiple statemens while performing them in one line, like this:
import time
print ("Ok, I know how to write programs in Python now.")
time.sleep(0.5)
print (".") # This should print on the same line as the previous print statement.
time.sleep(0.5)
print (".") # ... As should this one
... So the output should be:
Ok, I know how to write programs in Python now.*.*.
*Waits .5 seconds
More From » python