0

Hi! Can someone help me with project in Python curse âFizzBuzzâ?

1st Mar 2021, 4:33 PM
Flexik
+ 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
+ 1
1st Mar 2021, 5:05 PM
Rik Wittkopp
+ 1
Is it the task that replaces 3 with Solo, 5 with learn, etc...
1st Mar 2021, 5:16 PM
Rik Wittkopp
0
ssory, but i donât understand anything in this task
1st Mar 2021, 5:09 PM
Flexik
0
i donât understand what i must to do. Task is too strange.
1st Mar 2021, 5:10 PM
Flexik
0
yes
1st Mar 2021, 7:24 PM
Flexik