Skip to content

Commit

Permalink
Otavio Cardoso e Vinicius Garcia
Browse files Browse the repository at this point in the history
  • Loading branch information
dojorio committed Mar 4, 2020
1 parent 57987cd commit 7406c1d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
1 change: 1 addition & 0 deletions 2020/20200304 - fizzbuzz - python/dojo.log
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ Qua Mar 4 19:14:55 BRT 2020 - Vinicius Garcia e venancio mota
Qua Mar 4 19:20:19 BRT 2020 - Otavio Cardoso e Vinicius Garcia
Qua Mar 4 19:25:40 BRT 2020 - venancio mota e Otavio Cardoso
Qua Mar 4 19:33:34 BRT 2020 - Vinicius Garcia e venancio mota
Qua Mar 4 19:39:38 BRT 2020 - Otavio Cardoso e Vinicius Garcia
14 changes: 3 additions & 11 deletions 2020/20200304 - fizzbuzz - python/problem.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,7 @@ def fizzbuzz(num):
return 'fizz'
if num % 5 == 0:
return 'buzz'
if num != % 3 or % 4 == 0:
return num
if num == 4:
return 4
if num == 7:
return 7
if num == 8:
return 8
if num == 11:
return 11

return 1


return num
3 changes: 3 additions & 0 deletions 2020/20200304 - fizzbuzz - python/test_problem.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ def test_10(self):

def test_11(self):
self.assertEqual(fizzbuzz(11), 11)

def test_15(self):
self.assertEqual(fizzbuzz(15), 'fizzbuzz')

if __name__ == "__main__":
unittest.main()
Expand Down

0 comments on commit 7406c1d

Please sign in to comment.