so i'm using this snippet of code:
def print_slow(str):
for letter in str:
print letter,
time.sleep(.1)
from this link on SO: printing slowly (Simulate typing) and if fits my needs. However, my code so far is this:
import time
import random
import sys
def print_slow(str):
for letter in str:
print letter,
time.sleep(.5)
print_slow("MEME QUEST!")
time.sleep(.5)
print_slow("BY XXX XXXXX")
But when I run this code, it prints both snippets of code on the same line. Is there any way to put them on seperate lines?
EDIT: Adding an extra print to the print_slow function worked, thank you.