How to implement a different types of data in a list?
1 Like
No sir…I’m asking lyk…{int,“string”,double} present within in a single list (as we studied in python a list contains diff. types of datas bt here its working lyk a array & not possible to implement diff types of data in a list…why?)
Does using an Object type list or array work for you? It’s similar to a dictionary or data table where you might have various data types in the same variable, but would need to check their type and parse it into to the correct type as you use the value.