https://github.com/amaraelekwa/fizzbuzz-project
FizzBuzz is a well known programming assignment. The given code solves the FizzBuzz problem.
https://github.com/amaraelekwa/fizzbuzz-project
continue datascience elif if-else loops python3 range
Last synced: 3 months ago
JSON representation
FizzBuzz is a well known programming assignment. The given code solves the FizzBuzz problem.
- Host: GitHub
- URL: https://github.com/amaraelekwa/fizzbuzz-project
- Owner: amaraelekwa
- Created: 2025-04-05T16:13:40.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2025-04-05T16:44:39.000Z (9 months ago)
- Last Synced: 2025-04-05T17:27:27.686Z (9 months ago)
- Topics: continue, datascience, elif, if-else, loops, python3, range
- Language: Jupyter Notebook
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# FizzBuzz-Project
FizzBuzz is a well known programming assignment, asked during interviews.
FizzBuzz is a game that has gained in popularity as a programming assignment to weed out non-programmers during job interviews. The objective of the assignment is less about solving it correctly according to the below rules and more about showing the programmer understands basic, necessary tools such as if-/else-statements and loops.
The rules of FizzBuzz are as follows:
- It takes an input n and outputs the numbers from 1 to n.
- For each multiple of 3, print "Fizz" instead of the number.
- For each multiple of 5, prints "Buzz" instead of the number.
- For numbers which are multiples of both 3 and 5, output "FizzBuzz".
- Else, print the number.