simeonshopov

Movie tickets (june exam)

Nov 7th, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.23 KB | None | 0 0
  1. a1 = int(input())
  2. a2 = int(input())
  3. n = int(input())
  4. ticket = ""
  5.  
  6. for i in range(a1, a2):
  7.   for j in range(1, n):
  8.     for z in range(1, int(n / 2)):
  9.       if i % 2 != 0 and (j + z + i) % 2 != 0:
  10.         print(f"{chr(i)}-{j}{z}{i}")
Add Comment
Please, Sign In to add comment