0
How can I do the python project fizz bizz
3 odpowiedzi
+ 5
Please show us what you've done so far so we may help. Thanks
HINTS:
- Use for loop to iterate each odd integers up to that number.
To iterate each odd integer:
---> for num in range(1, n, 2):
Where n is the input, 1 is the starting point and 2 is the step (so it will just iterate odd numbers).
- Use conditions and use modulo operator to check if a number is divisible by 3 or 5 inside your for loop then print that number.
+ 4
By understanding the problem and find the logic of that fizz buzz problem then you will solve it
Try first 🙂
+ 2
In case of any doubts. Copy and paste your code here