Jak zrobić modulo w Pythonie
if i%2 == 0 :
print("the Number is Odd")
else:
print("the Number is even")
Sleepy Seahorse
if i%2 == 0 :
print("the Number is Odd")
else:
print("the Number is even")
>>> 15 % 4
3
>>> 17 % 12
5
>>> 240 % 13
6
>>> 10 % 16
10