Skip to content

Commit

Permalink
Update code.py
Browse files Browse the repository at this point in the history
  • Loading branch information
hjh12035 committed Aug 15, 2024
1 parent c3b4db3 commit e100f71
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lab00/code.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@ def get_airspeed_velocity_of(unladen_swallow):
# pretend there's code here...

def fizzbuzz(num):
if num == 3: # edit this line
if num % 3 == 0 and num % 5 == 0: # edit this line
print(f"{num}: fizzbuzz")
elif num % 3 == 0:
print(f"{num}: fizz")
if num == 5: # edit this line
elif num % 5 == 0: # edit this line
print(f"{num}: buzz")

for i in range(1, 20):
Expand Down

0 comments on commit e100f71

Please sign in to comment.