i am making a program just for fun and i can not setup my input function.

import sys
import time


def ynf():
    unsw = input('do you want the future to be told. 0=no 1=yes')
    if unsw == 0:
        print('okie dokie')
        time.delay(5)
        sys.exit('byeeeee')
    elif unsw ==1 :
        print ('okie')
        main()

def main():
    PName = input('what is your name?')
    print ('WTF '+PName+' sounds like crap,but ok')

ynf()

and i get only this. i have searched for some answers but...

do you want the future to be told. 0=no 1=yes0

Process finished with exit code 0

0 Answers