+ 1
How to remove multiples of 2 following code
n = int(input()) for x in range(1, n): 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)
2 Antworten
+ 6
Singabenkosi Nxumalo
Please review the 3rd section of Python core 28.1, which will explain the answer given to you by NEZ
+ 1
...
for i in range(1,n,2)
...