I guess having subclass for implementation errors to distinguish will be very helpful, Typeerror has become very generic and finding solution is like searching a needle in haystack for the new developers.
Eg- TypeError: ‘int’ object is not iterable students=int(input('Please enter the number of students in the class: ')) for number in students: math_grade=(input("Enter student's Maths grade: ")) science_grade=(input("Enter student's Science grade: ")) social_grade=(input("Enter student's Scoial grade: ")) Common homeworks/tutorial for beginners who find difficult to understand why this error occurred. So a fine grained exception would be lot easier to understand and resolve quickly. *List of TypeErrors* - https://itsmycode.com/tag/typeerror/ _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/45JVNSKTEN5HHWAUTWRWZMPF4FWJEFFH/ Code of Conduct: http://python.org/psf/codeofconduct/