The readings for Tuesday, September 20 are:
Once you have completed these readings, please answer the following questions:
What is the difference between using a return statement and using a print statement at the end of a function?
What is the result of the following Python code:
x = 0
def increment(x):
x = x + 1
return x
print x
print increment(x)
print x
print increment(x)
Explain what is happening at each print statement and what the output of each print statement is.
Hint: Trace through the code using the Online Python Tutor.
If you have any questions, comments, or concerns regarding the course, please provide your feedback here.
To submit your response, please edit the reading04/README.md file in your GitLab repository.