Fizzbuzz

 Today's Algodaily problem is the classic Fizzbuzz. You have a for loop and you have to print "fizz" if the index is divisible by 3, "buzz" if it's divisible by 5, "fizzbuzz" if it's divisible by both and the number itself otherwise.

It's like a truth table! You have to specify a condition that it's divisible by 3 and not 5 for "fizz" and analogously for "buzz". 

The solution is here https://github.com/mariakesa/Algorithms/blob/master/AlgoDaily/AlgorithmsPractice.ipynb

Kommentaarid