0

Help me please

Hi! Can someone help me with project in Python curse “FizzBuzz”?

1st Mar 2021, 4:33 PM
Flexik
Flexik - avatar
6 Answers
+ 3
There are a number of ways to do this. May I suggest you try the following. Create an input called n. Remember it must be an integer. IE: n = int(input()) Then create a range using your input as the upper number. The task requires you drop odd numbers, so use the range slice to drop them. IE: for i in range(0,n,2): Then use the % to find if a number is diviisble by 3, and print Solo instead IE: if i%3 ==0: print("Solo") Using if, elif & else statements, you should be able to resolve the rest of the challenge
1st Mar 2021, 8:59 PM
Rik Wittkopp
Rik Wittkopp - avatar
+ 1
Please show your attempt so we may assist you
1st Mar 2021, 5:05 PM
Rik Wittkopp
Rik Wittkopp - avatar
+ 1
Is it the task that replaces 3 with Solo, 5 with learn, etc...
1st Mar 2021, 5:16 PM
Rik Wittkopp
Rik Wittkopp - avatar
0
ssory, but i don’t understand anything in this task
1st Mar 2021, 5:09 PM
Flexik
Flexik - avatar
0
i don’t understand what i must to do. Task is too strange.
1st Mar 2021, 5:10 PM
Flexik
Flexik - avatar
0
yes
1st Mar 2021, 7:24 PM
Flexik
Flexik - avatar