+ 1
What is wrong in it? And how it will be corrected? I need to call the function and its not working.
#MAGIC NUMBER PROGRAM def magi_number(): p="thanks" nu = input('Choose and type number between 0 ot 10:') if int(nu) == 5: print(' YOU WON!') else : print(' wanna try again? yes(y) no(n) ') t=input(" ENTER: Y or N: ") if t == "y": magi_number() # this isn't working (calling) else: print('Thanks') ---------------------------------------------------- Output : Choose a no. Between 1 and 10: 6 wanna try again? Yes(y) No (n) y Program exits with code 1
8 odpowiedzi