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
8 Respuestas
+ 3
You’ll have to share the code you tried or we don’t know what you need help with
+ 2
then you did print(“2+1”) dont add the “”
+ 1
try print(1+1)
+ 1
it might just be that you did 1+1 you have to add print for it to work
+ 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.
+ 1
I did type print (2+1). The output displayed 2+1.
+ 1
Yes I got the output. Thank you.
0
np