#53BeginnerConditionals· if / elif / else
FizzBuzz with a Twist
Input format
`n`: a positive integer.
Output format
A list of `n` strings.
Examples
Input: n = 10
Output: ["1","Prime","Prime","4","Prime","Fizz","Prime","8","Fizz","Buzz"]
2, 3, 5 and 7 are prime. 6 and 9 are divisible by 3 and 10 by 5.
Input: n = 1
Output: ["1"]
1 is not prime and not divisible by 3 or 5.
Constraints
- 1 <= n <= 100
Study first
- #python
- #conditionals
- #loops
- #primes
