Quick Print – CSKC
Sign In

Search

siteicon
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.

Source Code

		 

Run Output

Name    Age     Height  GradStat
--------------------------------
RAVI 23 1.63 True
VISHAL 19 1.72 False