Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pkx8326/the_fizzbuzz_algorithm_with_python
This is a children's game but it is said to be one of the most asked problem in interviews for programmers. The rule of the game is simple: supposed that there are numbers from 1 to 100, if a number is divisible by 3, it's "Fizz", if it's divisible by 5 then it's "Buzz", if it's divisible by both 3 and 5 then it's "FizzBuzz", otherwise it's itself. The code in this repository should probably be the most efficient way to demonstrate this game. It works with the for loop syntax and if-else logic.
https://github.com/pkx8326/the_fizzbuzz_algorithm_with_python
algorithm buzz fizz fizzbuzz game
Last synced: 1 day ago
JSON representation
This is a children's game but it is said to be one of the most asked problem in interviews for programmers. The rule of the game is simple: supposed that there are numbers from 1 to 100, if a number is divisible by 3, it's "Fizz", if it's divisible by 5 then it's "Buzz", if it's divisible by both 3 and 5 then it's "FizzBuzz", otherwise it's itself. The code in this repository should probably be the most efficient way to demonstrate this game. It works with the for loop syntax and if-else logic.
- Host: GitHub
- URL: https://github.com/pkx8326/the_fizzbuzz_algorithm_with_python
- Owner: pkx8326
- Created: 2022-01-24T05:46:28.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-01-24T05:49:41.000Z (almost 3 years ago)
- Last Synced: 2024-01-08T11:17:48.209Z (10 months ago)
- Topics: algorithm, buzz, fizz, fizzbuzz, game
- Homepage:
- Size: 1000 Bytes
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# The_FizzBuzz_Algorithm_with_Python
This is a children's game but it is said to be one of the most asked problem in interviews for programmers. The rule of the game is simple: supposed that there are numbers from 1 to 100, if a number is divisible by 3, it's "Fizz", if it's divisible by 5 then it's "Buzz", if it's divisible by both 3 and 5 then it's "FizzBuzz", otherwise it's itself. The code in this repository should probably be the most efficient way to demonstrate this game. It works with the for loop syntax and if-else logic.