convert string to another type based on its value python code example
Example 1: python data type conversion
equationStrToInt = '8 * 8'
eval(equationStrToInt)
type(equationStrToInt)
print(equationStrToInt)
strToList = 'GREPPER'
list(strToList)
type(strToList)
print(strToList)
Example 2: how to tyoecast in python
example = 1.3234325
print(type(example))