"""CSC110 Practice 1: Data and Functions (Exercise 3)

Module Description
==================
This file contains all of the code snippets from Exercise 3: Debugging Corner.
Feel free to try to fix each code snippet in this file (and note that if you're
using PyCharm, some errors will be highlighted for you already---though some
errors in earlier code snippet may interfere with PyCharm detecting errors in
later code snippets).

Copyright and Usage Information
===============================

This file is provided solely for the personal and private use of students
taking CSC110 at the University of Toronto St. George campus. All forms of
distribution of this code, whether as given or with any changes, are
expressly prohibited. For more information on copyright for CSC110 materials,
please consult our Course Syllabus.

This file is Copyright (c) 2025 CSC110 Teaching Team
"""

###############################################################################
# Syntax Errors
###############################################################################
5 = x


numbers = [1 2 3]


fruit_to_color = {
    'banana': 'yellow',
    'kiwi': 'green'
    'blueberries': 'blue'}


result0 = max{3, 4}


###############################################################################
# Name Errors
###############################################################################
my_number = 10
result1 = 15 + my_nubmer


result2 = Sum([1, 2, 3])



###############################################################################
# Type Errors
###############################################################################
result3 = [1, 2, 3] + 4


numbers = {1, 2, 3}
result4 = numbers[0]


x = [1, 2, 3]
result5 = x[2.5]


###############################################################################
# Other errors
###############################################################################
nums = [110, 111, 200]
n0 = nums[0]  # 110
n1 = nums[1]  # 111
n2 = nums[2]  # 200
n3 = nums[3]  # Error!


result6 = 1 // 0


empty_list = []
result7 = max(empty_list)
