2nd May 2020, 12:56 PM
Adnin Qasifa
Adnin Qasifa - avatar
4 Answers
0
Your Mistakes:- *************** ✓ Inappropriate use of indentation ✓ Usage of raw_input. ✓ raw_input is not in python ✓ For taking input as string, You have to use int(input()) Consider this code.. https://code.sololearn.com/cYK6zSITLdQE/?ref=app
2nd May 2020, 1:25 PM
Eswar V
+ 1
First of all your usage lf tabs and spaces was not exactly what Python wanted, so it did not work... Moreover raw_input was renamed to input since Python 3 https://code.sololearn.com/cALB6MYleqOa/?ref=app
2nd May 2020, 1:10 PM
Alexander Thiem
Alexander Thiem - avatar
+ 1
Eswar V You told 4 points: The first 3 were already mentioned by me. and the last point was just false. Also your code is not even working.... So this is your code in correct: https://code.sololearn.com/c0RDpAxOKIg9/?ref=app There is no reason for float(int(input())) since float(input()) works better (can work with floats too)
2nd May 2020, 1:34 PM
Alexander Thiem
Alexander Thiem - avatar
0
Eswar V why in your output code, we cannot typing our number?
2nd May 2020, 5:45 PM
Adnin Qasifa
Adnin Qasifa - avatar