Ticket in Hand, Too Short — medium Python Fundamentals problem | Incognition