0
Объясните пж этот код,это задача из python.
int(input() for x in range(1, n): if x%2: continue if x % 3 == 0 and x % 5 == 0: print("1") elif x % 3 == 0: print("Solo") elif x % 5 == 0: print("Learn") else: print(x)
1 ответ
0
n = int(input())
You can also simplify the expression:
x % 3 == 0 and x % 5 == 0 : to
x % 15 == 0
And don't forget to indent your code.
Happy Coding!