Code Learning #PYTHON#9411
Back
Mixed data types
Both list and tuple can support the mixed data types. We also call it the heterogeneous type of data. In this example the list contains data of string, integer, float and boolean types. This program also shows an example of how tuple is used for cases where non-changeable data is used.
