generated from mwc/lab_names
A function and variable are alike since a variable gives a name to a certain value while a function gives a name to a larger amount of values. They both shorten and simplify what needs to be typed in the program as well. Functions might be useful in breaking down big, hard problems because you can work on a certain aspect of the problem and then create a function so you don't have to worry about that small piece of the problem again. For example when working on the turtle lab, since I used a lot of repeated symmetry, this would have been simpler if I could define some functions. |
||
---|---|---|
.commit_template | ||
.gitignore | ||
circle_area.py | ||
circle_area.py completed | ||
draw_with_shapes.py | ||
greetings.py | ||
poetry.lock | ||
pyproject.toml | ||
shapes.py | ||
test_shapes.py |