0
skip
how to skip even numbers in python
3 Answers
+ 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