Hola por favor alguien me puede ayudar con el ejercicio de buzzfish gracias no lo logro hacer | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

Hola por favor alguien me puede ayudar con el ejercicio de buzzfish gracias no lo logro hacer

Problema con buzzfish

15th Apr 2022, 2:30 AM
Emiliano Gallardo
Emiliano Gallardo - avatar
6 Answers
+ 1
Fizzbuzz you mean? Where's your try?
15th Apr 2022, 3:24 AM
NEZ
NEZ - avatar
+ 1
Many errors, it's 'for' not 'flor', it's 'if' not 'If' (beware of the cases), it's 'continue', it's 'print', it's 'elif' // n = int(input ()) for x in range(1 ,n): if x % 3 == 0 and x % 5 == 0: continue print ("sololearn") continue elif x % 3 == 0: print ("solo") elif x % 5 == 0: print ("learn") else: print(x)
16th Apr 2022, 1:03 AM
NEZ
NEZ - avatar
+ 1
Emiliano Gallardo Of course it will not , as you are not skipping even numbers. Just adjust the code so that it will not print even numbers.
16th Apr 2022, 8:43 AM
NEZ
NEZ - avatar
0
n = int(input ()) flor x in range(1 ,n) If x % 3 == 0 and x % 5 == 0: ContinĂșe Print ("sololearn") ContinĂșe Elif x % 3 == 0: Print ("solo") Elif x % 5 == 0: Print ("learn") Else: Print (x) That would be the code that i run and does not work
15th Apr 2022, 7:29 PM
Emiliano Gallardo
Emiliano Gallardo - avatar
0
Of course, but even with those errors fixed, what Python exercise number 30 tells me is not executed.
16th Apr 2022, 2:05 AM
Emiliano Gallardo
Emiliano Gallardo - avatar
0
thanks i will keep trying
16th Apr 2022, 4:55 PM
Emiliano Gallardo
Emiliano Gallardo - avatar