Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- x=int(input('Enter the 1st number :'))
- y=int(input('Enter the 1st number :'))
- if x%2==0:
- x+=1
- if y%2==0:
- y-=1
- t=[]
- for i in range (x,y+1,2):
- t+=[str(i)]
- print(' '.join(t))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement