What is wrong in it? And how it will be corrected? I need to call the function and its not working. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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

6th Oct 2019, 7:55 PM
rahul negi
rahul negi - avatar
4 Answers
+ 1
~ swim ~ yeah it is wrote that way to make it understandable ;__;
6th Oct 2019, 8:55 PM
rahul negi
rahul negi - avatar
0
~ swim ~ should i write input too? Its what u mean?
6th Oct 2019, 8:40 PM
rahul negi
rahul negi - avatar
0
~ swim ~ done check this and help plox
6th Oct 2019, 8:45 PM
rahul negi
rahul negi - avatar
0
Can u help ne with it? Why that function is not being called at second if condition?
6th Oct 2019, 8:56 PM
rahul negi
rahul negi - avatar