diff options
author | RossTheRoss <msattr@gmail.com> | 2019-01-17 15:32:09 -0600 |
---|---|---|
committer | RossTheRoss <msattr@gmail.com> | 2019-01-17 15:32:09 -0600 |
commit | deec2454e5ae0f11849a3887ccaff6c0923fea1e (patch) | |
tree | 54ef36d930913561489c92e7f26ee3ad1b2b23b9 | |
parent | New copyleft year (diff) | |
download | homework-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.py | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -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 |