0 of 6 problems solved • 0%

Exercise prompt

Read an Integer

The string '8' and the integer 8 have different behavior in arithmetic. Whitespace around integer text is accepted by int.

Example

station = "04" print(station + "1") # 041 print(int(station) + 1) # 5

The first plus joins strings. In the second line both operands are integers, so Python adds them.

Your task

Convert the supplied ticket count into an integer named count and calculate remaining after two tickets are used.