Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tickets_count = int(input())
- for i in range(1, tickets_count + 1):
- ticket = input()
- if len(ticket) == 4:
- if ord(ticket[0]) in range(65, 91):
- print(f"Seat decoded: {ticket[0]}{ticket[1]}{ticket[2]}")
- else:
- print(f"Seat decoded: {ticket[3]}{ticket[1]}{ticket[2]}")
- else:
- print(f"Seat decoded: {ticket[0]}{ord(ticket[1])}")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement