Last active
October 6, 2020 11:06
-
-
Save ArianK16a/cd195cc6420868c0019add32bf8d456b to your computer and use it in GitHub Desktop.
Revisions
-
ArianK16a revised this gist
Oct 6, 2020 . 1 changed file with 4 additions and 5 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,12 +1,11 @@ #!/usr/bin/env python3 for i in range(1, 100): if i % 15 == 0: print("FizzBuzz") elif i % 5 == 0: print("Buzz") elif i % 3: print("Fizz") else: print(i) -
ArianK16a revised this gist
Oct 5, 2020 . 1 changed file with 7 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,9 +1,12 @@ #!/usr/bin/env python3 for i in range(1, 100): if i % 3 == 0: if i % 5 == 0: print("FizzBuzz") else: print("Fizz") elif i % 5 == 0: print("Buzz") else: print(i) -
ArianK16a revised this gist
Oct 5, 2020 . 1 changed file with 0 additions and 20 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,25 +1,5 @@ #!/usr/bin/env python3 for i in range(1, 100): if (i % 3 == 0): print("Fizz") -
ArianK16a revised this gist
Oct 5, 2020 . 1 changed file with 8 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -17,5 +17,13 @@ def is_splittable5(i): print("Fizz") elif is_splittable5(i): print("Buzz") else: print(i) for i in range(1, 100): if (i % 3 == 0): print("Fizz") elif (i % 5 == 0): print("Buzz") else: print(i) -
ArianK16a revised this gist
Oct 2, 2020 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -12,7 +12,7 @@ def is_splittable5(i): else: return 0; for i in range(1, 100): if is_splittable3(i): print("Fizz") elif is_splittable5(i): -
ArianK16a created this gist
Oct 2, 2020 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,21 @@ #!/usr/bin/env python3 def is_splittable3(i): if (i % 3 == 0): return 1; else: return 0; def is_splittable5(i): if (i % 5 == 0): return 1; else: return 0; for i in range(100): if is_splittable3(i): print("Fizz") elif is_splittable5(i): print("Buzz") else: print(i)