When executing this code(simplified) I get None printed in the cmd, while I was expecting it to print out whatever I wrote as an answer to Foo: , and then it prints Bar. Why does this happen?
def contin(message):
input(message)
answ = contin('Foo: ')
print(answ)
if answ == None:
print('Bar')