The Simple Calculator doesn't work unless we make "user_input = raw_input (": ")". Is this a common mistake or is just a matter of what Python version is used? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

The Simple Calculator doesn't work unless we make "user_input = raw_input (": ")". Is this a common mistake or is just a matter of what Python version is used?

Bug in the Simple Calculator

20th Jul 2016, 2:59 PM
Jhonne Kleyton
Jhonne Kleyton - avatar
1 Answer
+ 3
Python 2.x is raw_input Python 3.x is input
20th Jul 2016, 3:54 PM
jj Fer
jj Fer - avatar