0
I need help with this python code!
2 Answers
+ 2
if you are using python 3, i believe you want input instead of raw_input. At some point in python 3, input replaced raw_input
+ 2
In code playground this is Python 3... so you need at least to replace raw_input by input, as said by @Bill, and do probably others adaptations from Python 2.x to Python 3 ( ie. division... ).
But in code playground too, there's a terrible limitation as in/output cannot be done at real time, so ALL inputs required by script at run-time need to be pre-filled at once, just before starting execution... By this way, and unfortunally, your script seems to be impossible to adapt in code playground ( I guess it's a battleship like, isn't it? )