0
In FIZZBUZZ (second test in python)
Im not sure if i make it in the right way... I just write in range that will be jumping by 2 and it will skip all the even numbers. I ask that because i solve that with only 2 symbols and its sus for me. Also my english is so bad that i dont understand everything. I hope you know what i mean. In control structures chapter.
3 ответов
+ 5
Erialdo Meta 🇦🇱
I do it like this:
n = int(input())
for x in range(1, n, 2):
if x % 3 == 0 and x % 5 == 0:
print("SoloLearn")
elif x % 3 == 0:
print("Solo")
elif x % 5 == 0:
print("Learn")
else:
print(x)
in range write it must jump by 2 if you know what i mean
+ 3
Show your attempt!
0
Erialdo Meta 🇦🇱 I just think this is better solution, but there is big chance that i miss the point of it. Thats why i asking.