0
skip
how to skip even numbers in python
4 Respostas
+ 3
for i in range(n):
if i % 2 == 0:
continue
else:
#ur code goes here
+ 2
def is_even(num):
if num%2 == 0:
return True
else :
return False
print(is_even(4))
#True
now do as Иван Чикyнов said
and
use this func in your program to check number is even or not..
Happy coding !!
0
thanks