I am quite sure my program is correct, however, the 2nd part of correct answer doesn't show up

@GeekSebastian : Don’t be discouraged. In case you missed it in Karl’s post the guide to posting code instead of screenshots is in About the Python Help category. Seems like about half of new posters need this advice.

Other thing: read error messages carefully. They’re not always the most helpful, but they’re always precise.