0
Cannot run Program. Why?
4 Respuestas
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
+ 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
+ 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)
0
Eswar V why in your output code, we cannot typing our number?