Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- min_bar = int(input())
- max_bar = int(input())
- for barcode in range(min_bar, max_bar + 1):
- digit1 = barcode % 10
- barcode //= 10
- digit2 = barcode % 10
- barcode //= 10
- digit3 = barcode % 10
- barcode //= 10
- digit4 = barcode % 10
- if digit1 % 2 != 0 and digit2 % 2 != 0 and digit3 % 2 != 0 and digit4 % 2 != 0:
- print(f'{digit4} {digit3} {digit2} {digit1}')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement