Long story short: Had a lot of trouble with the quiz in 5.3 regarding taking a user defined circumference and calculating diameter. The script I wrote worked just fine…but it took me a long time to get the fill in the blank quiz right.
Turns out the culprit was that I entered: return(diameter) when the quiz wanted: return diameter
The reason I was given was that print is a function and return is a statement. I don’t know how to distinguish between these two things. The module that introduces defining functions simply defines function as a ‘any body of code that performs some task’.
What is the difference between a function and a statement?
Sorry for the confusion - any feedback would be much appreciated!