40 Program to demonstrate List with heterogeneous elements in Python Atharva Satyendra Agrawal March 26, 2020 Atharva Satyendra Agrawal Program: #list with heterogeneous elements x=[501,6.1,True,"python"] print(x[2]) print(x[3][2]) for p in x: print(p,type(p),id(p)) Output: Tweet Share Share Share Related Post