Skip to content

Commit bffe2b1

Browse files
authored
Merge pull request #45 from chennesy/funct_param_miss
fixing empty parameters error in writing functions fixes #44
2 parents a946b5b + 0289f57 commit bffe2b1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

episodes/writing-functions.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -68,15 +68,15 @@ To expand on the recipe metaphor above, the arguments you add to the `()` contai
6868
Functions with defined parameters will result in an error if they are called without passing an argument:
6969

7070
```python
71-
calc_fine()
71+
print_date()
7272
```
7373

7474
```error
7575
TypeError Traceback (most recent call last)
7676
Cell In[15], line 1
77-
----> 1 calc_fine()
77+
----> 1 print_date()
7878
79-
TypeError: calc_fine() missing 1 required positional argument: 'days_overdue'
79+
TypeError: print_date() missing 3 required positional arguments: 'year', 'month', and 'day'
8080
```
8181

8282
## Use `return` to pass values back from a function.

0 commit comments

Comments
 (0)