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)

25th Oct 2020, 6:24 AM
SikaNDer_555
SikaNDer_555 - avatar
1 Answer
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!
25th Oct 2020, 6:30 AM
QTWizard