Basic Python | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Basic Python

So I just started this course and I'm a little confused on the 3rd lesson haha... It says I can directly enter a math problem into the console and it'll solve it on the output area. Entered: 5+5 There was "No Output." What am I doing wrong?

3rd Jun 2019, 8:31 PM
Justin
3 Answers
+ 1
if you want it to print you need to enter: print(5+5)
3rd Jun 2019, 8:33 PM
Cat Sauce
Cat Sauce - avatar
0
but if you work on the python command line i think the 5 + 5 does work
3rd Jun 2019, 8:33 PM
Cat Sauce
Cat Sauce - avatar
0
You should have wrote: print(5+5) The print statement is used to show what you require into the console
3rd Jun 2019, 8:34 PM
Mo Hani
Mo Hani - avatar