Last answered:

19 Dec 2020

Posted on:

17 Dec 2020

0

Python print statement

Hi, FIrst of all thank you for the great materials you've created.  I was studying the python function within the 'introduction to python' course. I tried to replicate the same function that the tutor provided in the course and when i try to call it this way : function(parameters) without using the print statement it doesnt display anything unless i use the print statement like the following :   print(function(parameters))   It's confusing because in the course the tutor doesnt seem to use the print statement and the function is still  displayed anyway.   Ps : i'm using sublime text as a text editor.   Thank you very much.
1 answers ( 0 marked as helpful)
Instructor
Posted on:

19 Dec 2020

0
Hi Ghita! Thanks for reaching out. Thank you very much for the kind words! You are motivating us to keep up the pace and continue creating such material! The answer will depend on the specific example and the way you've used print/return while creating the function. Therefore, can you please support your question with the code you've executed, as well as with a screenshot containing the entire error message? Only then will we be able to provide a specific answer. Thank you.  Looking forward to your reply.
Best,
Martin

Submit an answer