HELLO,
In the above image, 34 is printed after pressing shift+Enter. Could you tell me what is the meaning of this I haven’t had the print command on 34.
Thank You!
HELLO,
In the above image, 34 is printed after pressing shift+Enter. Could you tell me what is the meaning of this I haven’t had the print command on 34.
Thank You!
Hi @sarthakagg105
In Jupyter Notebook, a code cell allows you to edit and write new code, with full syntax highlighting and tab completion. The programming language you use depends on the kernel , and the default kernel (IPython) runs Python code. When a code cell is executed, code that it contains is sent to the kernel associated with the notebook. The results that are returned from this computation are then displayed in the notebook as the cell’s output . Thus even if you didn’t wrote print statement 34 was shown as output.
Hope this might helps
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.
Okay! So Python kernel has print command already inside it thus printing 34 as it is an intuitive and interactive shell right?