-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Fizzbuzz project #3
Comments
Write a Python program that iterates the integers from 1 to 50. For multiples of three print "Fizz" instead of the number and for multiples of five print "Buzz". For numbers that are multiples of three and five, print "FizzBuzz". Solution: Python Code : Sample Output: 41 Flowchart: Python program to get Fizz, Buzz and FizzBuzz |
FIZZ BUZZ using FunctionMultiples of 3 - FizzMultiples of 5 - Buzzdef fizzbuzz(n): Test the fizzbuzz functionn = int(input("Enter the range :")) |
def fizz_buzz(n):
n = 100 Call the fizz_buzz function to get the resultresult = fizz_buzz(n) Print the resultprint(' '.join(result)) |
No description provided.
The text was updated successfully, but these errors were encountered: