# Python program to print Even Numbers in given range
start = int(input("Enter the start of range: "))
end = int(input("Enter the end of range: "))
#create a list that contains only Even numbers in given range
even_list = range(start, end + 1)[start%2::2]
for num in even_list:
print(num, end = " ")
for num in range(4,15,2):
#here inside range function first no dentoes starting, second denotes end and third denotes the interval
print(num)
# Python program to print odd Numbers in given range
start, end = 4, 19
# iterating each number in list
for num in range(start, end + 1):
# checking condition
if num % 2 != 0:
print(num, end = " ")
# Python program to print Even Numbers in given range
start = int(input("Enter the start of range: "))
end = int(input("Enter the end of range: "))
#creating even starting range
start = start+1 if start&1 else start
#create a list and printing element
#contains Even numbers in range
[ print( x ) for x in range(start, end + 1, 2)]
# Python program to print odd Numbers in a List
# list of numbers
list1 = [10, 21, 4, 45, 66, 93]
i = 0
# using while loop
while(i < len(list1)):
# checking condition
if list1[i] % 2 != 0:
print(list1[i], end = " ")
# increment i
i += 1