premier kata pour les stagiaires

This commit is contained in:
Yannick Francois
2019-04-10 19:15:22 +02:00
parent 4cd770e832
commit 3f7434bd03
6 changed files with 1045 additions and 0 deletions

6
kata/python/fizzbuzz.py Normal file
View File

@ -0,0 +1,6 @@
def fizzbuzz(nombre):
return 1
for nombre in range(1, 101):
print(nombre)

View File

@ -0,0 +1,9 @@
import unittest
from fizzbuzz import *
class FizzbuzzTest(unittest.TestCase):
def test_un_renvoie_un(self):
self.assertEqual(1, fizzbuzz(1))
if __name__ == "__main__":
unittest.main()