Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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.