Is there any way to understand what data type that a string holds... The question is of little logic but see below cases
varname = '444'
somefunc(varname) => int
varname = 'somestring'
somefunc(varname) => String
varname = '1.2323'
somefunc(varname) => float
My Case: I get a mixed data in a list but they're in string format.
myList = ['1', '2', '1.2', 'string']
I'm looking for a generic way to understand whats their data so that i can add respective comparison. Since they're already converted to string format, I cant really call the list (myList) as mixed data... but still is there a way?