This is the code and notes from my live Twitch programming and drawing classes.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

13 lines
315 B

def create(replies):
"""Used for faking out scripts so they can run like
the book needs but be sectioned to appear to be normal.
"""
def input(prompt=None):
reply = replies.pop(0)
if prompt: print(prompt, end=' ')
print(reply)
return reply
return input, input