Commit 12b4866
authored
Update FizzBuzz.py
logical issue in the FizzBuzz() function.
The current implementation of the FizzBuzz() function requires the user to input the number to count up to. This limits the functionality of the function to a single use case.
To make the function more flexible and reusable, we can modify the function to take the num argument as an input parameter. With this modification, we can call the FizzBuzz() function with any number you want to count up to.1 parent 263bd95 commit 12b4866
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
| 9 | + | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
| |||
19 | 18 | | |
20 | 19 | | |
21 | 20 | | |
22 | | - | |
| 21 | + | |
| 22 | + | |
0 commit comments