0

Is the tutorial wrong?

In tutorial we are taught that python can perform basic operations of add, sub, etc. it the script directly but when I tried it in the code page it shows 'No Output'. https://code.sololearn.com/claURtPvWU58/?ref=app

17th Dec 2019, 3:48 PM
Aniket Yadav
Aniket Yadav - avatar
8 Answers
+ 3
You’ll have to share the code you tried or we don’t know what you need help with
17th Dec 2019, 3:56 PM
Jax
Jax - avatar
+ 2
then you did print(“2+1”) dont add the “”
17th Dec 2019, 4:02 PM
Videomaker yt
Videomaker yt - avatar
+ 1
try print(1+1)
17th Dec 2019, 3:57 PM
Videomaker yt
Videomaker yt - avatar
+ 1
it might just be that you did 1+1 you have to add print for it to work
17th Dec 2019, 3:57 PM
Videomaker yt
Videomaker yt - avatar
+ 1
In the python interpreter you can do add, sub, mul and more like directly it makes easier and do write code as it sometime helps to make it easier. Not in codeplayground.. like that. For to code you need to do write nad display output with print command ...print(1+1). Note: ? My ans can be wrong becoz as i didn't get the question clearly..but still i think that's the ans.
17th Dec 2019, 3:59 PM
★«D.Connect_Zone»
★«D.Connect_Zone» - avatar
+ 1
I did type print (2+1). The output displayed 2+1.
17th Dec 2019, 4:01 PM
Aniket Yadav
Aniket Yadav - avatar
+ 1
Yes I got the output. Thank you.
17th Dec 2019, 4:04 PM
Aniket Yadav
Aniket Yadav - avatar
0
np
18th Dec 2019, 6:25 PM
Videomaker yt
Videomaker yt - avatar