Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Python Code for Checking if a number is an Odd number

count2 = 0
for odd_number in range(1, 20):
    if odd_number % 2 != 0:
        count2 += 1
        print(odd_number)
print(f"we have {count2} odd numbers")
Source by inlarn.com #
 
PREVIOUS NEXT
Tagged: #Python #Code #Checking #number #Odd #number
ADD COMMENT
Topic
Name
2+8 =