- 1
Hola por favor alguien me puede ayudar con el ejercicio de buzzfish gracias no lo logro hacer
Problema con buzzfish
6 Respostas
+ 1
Fizzbuzz you mean?
Where's your try?
+ 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)
+ 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.
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
0
Of course, but even with those errors fixed, what Python exercise number 30 tells me is not executed.
0
thanks i will keep trying