Michael J. answered 06/02/19
Tutor
5.0
(516)
Mathematics and Computer Programming for Gifted Students
Use 'in' whenever possible with python collections. In the case of dictionaries the 'in' keyword uses the dictionaries hash-table instead of searching every key in stored order. Further, 'has_key()' no longer exists in python 3.x.