🛠️ Scheduled Maintenance | We’ll be undergoing scheduled maintenance and upgrades between 00:00 PST Jan 26th until 00:00 PST Jan 28th. There may be brief interruption of services in that period. We apologize for the inconvenience.

×
The 365 Data Science team is proud to invite you to our own community forum. A very well built system to support your queries, questions and give the chance to show your knowledge and help others in their path of becoming Data Science specialists.
Ask
Anybody can ask a question
Answer
Anybody can answer
Vote
The best answers are voted up and moderated by our team

Python print statement

Python print statement

Super Learner
0
Votes
1
Answer

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 Answer

365 Team
0
Votes

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