Teo_Yanchev

Untitled

Jul 19th, 2020
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. first_num = int(input())
  2. second_num = int(input())
  3.  
  4. for i in range(first_num, second_num+1):
  5. num_as_string = str(i)
  6. if int(num_as_string[0]) % 2 == 0 or int(num_as_string[1]) % 2 == 0 or int(num_as_string[2]) % 2 == 0 or int(num_as_string[3]) % 2 == 0:
  7. continue
  8. else:
  9. print(num_as_string, end=" ")
Advertisement
Add Comment
Please, Sign In to add comment