# Console outout for checking different types of error messages # (longer error messages have been truncated, just so we can see the types!) # from class on 1/28/25 >>> lst1 = [4,5] >>> lst2 = [6, 7] >>> lst3 = lst2 - lst1 TypeError: unsupported operand type(s) for -: 'list' and 'list' >>> lst1 = [4,5] >>> print(lst4) NameError: name 'lst4' is not defined. Did you mean: 'lst1'? >>> [4,5] = lst SyntaxError: cannot assign to literal >>> x = float("13,176") ValueError: could not convert string to float: '13,176' >>> dct = {"a" : 2} >>> print(dct[2]) KeyError: 2