From deec2454e5ae0f11849a3887ccaff6c0923fea1e Mon Sep 17 00:00:00 2001 From: RossTheRoss Date: Thu, 17 Jan 2019 15:32:09 -0600 Subject: Add actual glorious FizzBuzz --- help.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'help.py') diff --git a/help.py b/help.py index 9ab8773..11f03bd 100644 --- a/help.py +++ b/help.py @@ -1 +1,12 @@ -# Test \ No newline at end of file +# Time to make a real Fizzbuzz +for e in range (0,101): + string = '' + if e % 3 == 0: + string = string + "Fizz" + if e % 5 == 0: + string = string + "Buzz" + if e % 5 != 0 and e % 3 != 0: + print(e) + else: + print(string) + \ No newline at end of file -- cgit v1.2.3