+ 1

In the python 3 tutorial it says you can just type a mathematical equation in the coding area and it will show the answer. When

In the python 3 tutorial it says you can just type a mathematical equation in the coding area and it will show the answer. When I do it it says there's an error.

23rd Nov 2019, 4:12 PM
Alex Harvey
Alex Harvey - avatar
5 odpowiedzi
+ 2
I use a phone for sololearn print(3+4) works for me 3+4 generates a 'no output' message
24th Nov 2019, 1:25 AM
Rik Wittkopp
Rik Wittkopp - avatar
+ 1
Ah ok so when using the environment in the app or the website, you are essentially using an IDE. When using an IDE or text editor, you must use the print function to output the result. You don't need it if you are typing code directly into the python terminal itself.
24th Nov 2019, 4:33 AM
Joe
Joe - avatar
+ 1
If you have the Python IDE, it has a shell that lets you just type in any math sentences or commands. You don’t need a print statement for plain strings or math equations
25th Nov 2019, 3:30 AM
OnesAndZeroes10
OnesAndZeroes10 - avatar
0
In the tutorial section, it states about the python interpreter, where each line is executed there itself..
23rd Nov 2019, 4:36 PM
Мг. Кнап🌠
Мг. Кнап🌠 - avatar
0
Yes you can do this. I have python 3.7.2 and was able to do exactly that. What is the error code you received?
24th Nov 2019, 12:30 AM
Joe
Joe - avatar