why the result of print(2) is not in the output | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

why the result of print(2) is not in the output

6th Jul 2016, 12:56 AM
QuiGon
QuiGon - avatar
3 Answers
+ 1
I don't understand: print(2) prints 2, what's confusing in it? Try it in Code Playground!
6th Jul 2016, 4:25 AM
Jesse P Francis
Jesse P Francis - avatar
+ 1
print(2) gives output as 2 you can try as print('2') but remember it gives 2 as string not as integer value. but i don't understand why you are not getting the output.
8th Jul 2016, 4:16 PM
Shantam Vijayputra
Shantam Vijayputra - avatar
0
it shoud be print ('2') if U wanna to print no. 2
6th Jul 2016, 1:22 AM
Ahmed Kamal
Ahmed Kamal - avatar