We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Actually, its because the method "raw_input" was deprecated in Python 3. That's why the first Python excercise (without raw_input) gave you the choice of Python 2 or Python 3. In Python 3, raw_input was replaced with the basic input() method. These excercises, if done with Python 3, would either make you classify and convert the input to a boolen, int, float etc. because input() always produces a string, or the excercises would require you to go in depth and use the sys module to read from system input.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Arithmetic Operators
You are viewing a single comment's thread. Return to all comments →
Actually, its because the method "raw_input" was deprecated in Python 3. That's why the first Python excercise (without raw_input) gave you the choice of Python 2 or Python 3. In Python 3, raw_input was replaced with the basic input() method. These excercises, if done with Python 3, would either make you classify and convert the input to a boolen, int, float etc. because input() always produces a string, or the excercises would require you to go in depth and use the sys module to read from system input.