Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. x=int(input('Enter the 1st number :'))
  2. y=int(input('Enter the 1st number :'))
  3. if x%2==0:
  4. x+=1
  5. if y%2==0:
  6. y-=1
  7. t=[]
  8. for i in range (x,y+1,2):
  9. t+=[str(i)]
  10.  
  11. print(' '.join(t))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement