aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRossTheRoss <msattr@gmail.com>2019-01-17 15:32:09 -0600
committerRossTheRoss <msattr@gmail.com>2019-01-17 15:32:09 -0600
commitdeec2454e5ae0f11849a3887ccaff6c0923fea1e (patch)
tree54ef36d930913561489c92e7f26ee3ad1b2b23b9
parentNew copyleft year (diff)
downloadhomework-deec2454e5ae0f11849a3887ccaff6c0923fea1e.tar
homework-deec2454e5ae0f11849a3887ccaff6c0923fea1e.tar.gz
homework-deec2454e5ae0f11849a3887ccaff6c0923fea1e.tar.bz2
homework-deec2454e5ae0f11849a3887ccaff6c0923fea1e.tar.lz
homework-deec2454e5ae0f11849a3887ccaff6c0923fea1e.tar.xz
homework-deec2454e5ae0f11849a3887ccaff6c0923fea1e.tar.zst
homework-deec2454e5ae0f11849a3887ccaff6c0923fea1e.zip
Add actual glorious FizzBuzz
Diffstat (limited to '')
-rw-r--r--help.py13
1 files changed, 12 insertions, 1 deletions
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