0

Why I can't run numerical codes?

I can't do any math operations in python!

26th Jul 2020, 6:12 PM
majid
majid - avatar
7 Réponses
+ 3
youre used to working in the interpretor, its cool man. common mishap. solo learn playground (what youre typing code on in this app) is an IDE. meaning if you want to see anything, you'll have to print it. try print(2+2)
26th Jul 2020, 6:20 PM
Slick
Slick - avatar
+ 5
print(2+2) not 2+2 , probably you are mixng it with interpreter where <<< is given and you need to write 2+2 or any command directly and it prints the output
26th Jul 2020, 6:20 PM
Abhay
Abhay - avatar
+ 3
yeah, you can. supply, any, information about the problem and someone would be glad to help
26th Jul 2020, 6:15 PM
Slick
Slick - avatar
+ 2
this is not terminal like IDLE that will give you direct output.. this is like python file. so you have to write print() function. ex. print(2+3).
26th Jul 2020, 6:28 PM
Vahida Vadiya
+ 1
https://code.sololearn.com/cUnMx6vJ1vUz/?ref=app your issue is that you are doing nothing with that information. If you are trying to see the results then you should probably print your results.
26th Jul 2020, 6:22 PM
Pie
Pie - avatar
26th Jul 2020, 6:25 PM
majid
majid - avatar