Why is the mistake in line 26? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
9th Jul 2023, 8:38 AM
Tarek Trkawy
Tarek Trkawy - avatar
4 Answers
+ 2
Tag "Python", NOT YOUR NAME. You did not assign a string to "operatation", so it is "None".
9th Jul 2023, 8:42 AM
Lisa
Lisa - avatar
+ 2
Operations should not be performed inside double quotes because double quotes means string you didn't use that 2 variables first_number and second_number
9th Jul 2023, 9:20 AM
A͢J
A͢J - avatar
+ 2
What error you are seeing in line 26? But you are using print instead of input for operation input!!!
9th Jul 2023, 10:47 AM
Jayakrishna 🇮🇳
0
first_number=int(input("enter first number: ")) for take the input, the same for the second number and for the operation without int
9th Jul 2023, 9:30 AM
Angela
Angela - avatar