
numbers = [i for i in range(1,11) if i%2 == 0]
print(numbers)

numbers = [i for i in range(1,11) if i%2 != 0]
print(numbers)

string = "Shiva1 Sai2 Azim3 4 5"
numbers = [x for x in string if x.isdigit()]
print(numbers)



numbers = [i for i in range(1,11) if i%2 == 0]
print(numbers)

numbers = [i for i in range(1,11) if i%2 != 0]
print(numbers)

string = "Shiva1 Sai2 Azim3 4 5"
numbers = [x for x in string if x.isdigit()]
print(numbers)

