Why is none there

In the lecture, it was shown that when we run our function, we don’t see any “NONE” printed. But when I run the same function, it returns a “NONE” string. Why is that?

Hey @rishabb0220_574491cc1db7c5b2,
None is printed here because you are calling the function inside print statement. In this scenario first the function you are calling works and do its work of printing 3 times then the print function works in which call has been made but because you are not returning any thing in the function thats why it is printing None in 4th line.

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.

So why is it different from the code in the tutorial and what changes do I have to make so that it doesn’t print “none”.