Discussion Overview
The discussion revolves around understanding the return statement in Python functions, specifically how to print the value returned by a function. The context includes a homework-related inquiry regarding function behavior in different versions of Python.
Discussion Character
Main Points Raised
- One participant describes a function that modifies a variable and attempts to print its return value, encountering an error.
- Another participant suggests using the correct syntax for the print function in Python 3, indicating that the print statement has changed.
- A different participant clarifies they are using Python 2.4.3, implying that the syntax issue may not apply to their situation.
- One participant requests clarification on the specific error message encountered when trying to print the function's return value.
Areas of Agreement / Disagreement
Participants have differing views on the syntax for printing function results based on the version of Python being used, indicating a lack of consensus on the issue.
Contextual Notes
The discussion highlights potential confusion arising from differences between Python 2 and Python 3, particularly regarding the print statement and function behavior.