TypeErrors गलत प्रकार के ऑब्जेक्ट्स को जोड़ने या गलत प्रकार के ऑब्जेक्ट के साथ फ़ंक्शन कॉल करने के कारण होते हैं।
उदाहरण
import sys
try:
ny = 'Statue of Liberty'
my_list = [3, 4, 5, 8, 9]
print(my_list + ny)
except TypeError as e:
print(e)
print(sys.exc_type)
आउटपुट
can only concatenate list (not "str") to list