Congratulations on completing Part 3. You have learned a lot and on your way to becoming a programmer with Python 3.
Here is a summary of what was learned
in Part Three:
·
We learned about functions in Python 3. We have the built-in functions
like print() and input() but we can also have user-defined functions.
·
To create a user-defined function, we use the def keyword. We then
specify all our lines of code for what the function is to perform under that.
·
We learned about using arguments in our functions. We could also specify
default parameters for our functions. We can also use docstrings so as to have
documentation on what the function does.
·
We wrote a better code to improve our calculator. We were able to
achieve a better calculator app using functions.
No comments:
Post a Comment