So guys I tried the python magic eight ball and I don’t understand why it’s not working

22nd Sep 2020, 9:20 PM
Claudine lngabire
Claudine lngabire - avatar
3 Answers
+ 1
Insufficient information Pls add more info.. Where is the code? Edit : OK. Add code link here, or mention code link details.. If you are asking about your 1st code, then Claudine lngabire raw_input() function works in python2 or less but in python 3 and above use input() function to read data.. 2nd elif is missing colon.
22nd Sep 2020, 9:22 PM
Jayakrishna 🇮🇳
+ 2
Claudine lngabire after elif answer==2 your code need ":"
22nd Sep 2020, 9:27 PM
+ 1
Also input() not raw_input() ,raw_input() is used in python 2
22nd Sep 2020, 9:32 PM
Abhay - avatar