♦ List with different Data Type elements in Python
♣ Example2: List with different Data Type elements in Python
A List can hold elements of different Data Types as-well, meaning there can be a variety of Data-Types in a List.Let us see a combination of three Data-Type mixture.
Example
Input:
Output: mix variable(array/list) holds three type of Data-Type elements. More specifically they are int, string and bool.