Is print function not necessary for output

instead of typing pint in many places u are typing only a and it is giving output. Can we do that

Hey @surbhi11, let me explain it to you. So what happens in jupyter notebook is that when you run a cell, it by default prints the value of the variable that you have written in the last line of that cell. However this is not true in case the variable is not written in the last line of that cell. Although I would strongly recommend you to always use the print function for printing the values.

I hope this helps ! :+1:
Please mark the doubt as resolved in your doubts section ! :slightly_smiling_face:
Happy Learning ! :slight_smile:

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.