A Galway bus has no free seats. Why can Python's False and 'False' mean different things?
The display on a Galway bus says there are no free seats. Your code needs to answer one question: is there a seat available? Python can give you False as an answer, or store the word False as text. What difference do those quotes make?
You already know how to read these values. The seat count is zero, an integer. The destination is Galway, a string. Even a digit can be stored as text: put quotes around zero and you have a string instead of a number.
The variable seats counts free seats. Here it starts at zero. On the next line, Python asks whether zero is greater than zero. The two numbers are equal, so Python gives you False and stores it in seat available.
Another bus has exactly one free seat. Run the same comparison in your head: seats greater than zero. Pick the value Python stores. Pay attention to whether the option is a number, text or the result of the comparison.
True and False are the two Boolean values. You get one of them when Python evaluates a comparison. The seat count can be zero, one or many more, but the question about whether a seat is available has only two possible answers.
Now the destination is stored as Galway, with a capital G. You want to check whether it matches the string galway, with a lower-case g. Read the double equals sign as 'is equal to'. The first letters differ in case, so the result is False.
This time, the destination is Cork with a capital C. The code compares it with Cork, also with a capital C. Pick the value that the comparison gives. Think about what the comparison returns, even though both inputs are strings.
Without quotes, False is a Boolean. With quotes, it's a string of five characters. You might expect the matching spelling to mean the values are equal, but the equality test gives False. Test each value directly in an if condition: the Boolean is false, and the string is true because it's nonempty.
You record three and zero free seats, then journey times of twelve point five and nine point two minutes. Seat counts are discrete and journey times are continuous. Store the values in separate lists. Sort each list: zero comes before three, and nine point two comes before twelve point five.