generated from mwc/lab_names
triangle with side length side_length. For rectangle, I made it alternate going forward height and width, turning right 90 degrees each time. Checkpoint 1: Already submitted Checkpoint 2: A function is like a variable in that it is a name for something else. Functions could be helpful in breaking down a big, hard problem into smaller, easier problems, which can each be represented by a function, as a big problem could be rewritten as a series of function calls. Adding fractions might be an example. To add the fractions, a common denominator needs to be found, the fractions have to be changed into equivalent fractions with the common denominator, the numerators are added, and then the fractions are simplified. each of these four steps might itself be a function and the adding of fractions could be written as calling those four functions. |
||
---|---|---|
.commit_template | ||
.gitignore | ||
circle_area.py | ||
draw_with_shapes.py | ||
greetings.py | ||
pyproject.toml | ||
shapes.py | ||
test_shapes.py |