+ 1

How do you use Python as a calculator?

When I go to code playground i type in a calculation, example: 2*3 and try to run it it say error or no output. Am I doing something wrong? Help

28th Dec 2017, 11:47 PM
Ayanna
Ayanna - avatar
2 Answers
+ 7
Sololearn does not provide an interactive console, which normally would output the result after each line of entered code. Instead, it sends all your code as a whole to a remote interpreter and sends you the output back. So either you give a proper instruction like print(2*3) or download a Python bundle with an interactive console (like QPython3 or PyDroid3 for Android).
28th Dec 2017, 11:53 PM
Kuba SiekierzyƄski
Kuba SiekierzyƄski - avatar
+ 1
Thank you! That really helped!
28th Dec 2017, 11:54 PM
Ayanna
Ayanna - avatar