Abhishek Kumar <abhishekkm...@gmail.com> writes: > I am a computer science student,I want to know how python keeps track > of data types of variables
Python doesn't track the type of a variable, because a variable never has any information about type. What Python calls “variables” are names, referring to objects. Names have no type. Every object has a type, so Python doesn't “track” the type in the sense you mean. -- \ “Any sufficiently advanced bug is indistinguishable from a | `\ feature.” —Rich Kulawiec | _o__) | Ben Finney _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor