Day 5, Bug Fixing Exercise 1

Explanation

Line 3 was

user_choice = input("Enter the index of the item: ")

but it should be
user_choice = int(input("Enter the index of the item: "))
The number submitted by the user is loaded by Python as a string by default, so we needed to convert it into an integer.

Recommended Course

Python Mega Course: Learn Python in 60 Days, Build 20 Apps
Learn Python on Udemy completely in 60 days or less by building 20 real-world applications from web development to data science.