My code seems to be printing a None
at the end of the code. I read that it is due to several print statements, but I'm not sure how to fix it in my case:
def type(str):
for char in str:
sys.stdout.write(char)
sys.stdout.flush()
time.sleep(0.075)
time.sleep(1.5)
input1 = input(type("""\na. You go to the printer
b. Go to keyboard"""))
output:
a. You go to the printer
b. Go to keyboardNone
How can I get rid of the extra None
in the end?