Learning Phython Questions

Why do I have to call a function to print what is inside the function? Why does the function not print anything if I do not call it? please explain. Thanks.

If the code inside a function were automatically executed without calling the function, what would be the point of having a function?

Consider the print() function. If print simply executed on its own without being called, what would it print, and when? Would it just print all of the code every time the program is executed?

2 Likes