how to find the number of odd numbers and even numbers in a variable in pytho code example
Example: how to get odd numbers in python
# Here, rnge means range
rnge = int(input("Enter the range: "))
for i in range(1, rnge, 2):
print(i)
# Here, rnge means range
rnge = int(input("Enter the range: "))
for i in range(1, rnge, 2):
print(i)