How can I create empty variable that has the same data type of another variable?
data = get_data()
new_variable = data.data_type() #just create empty variable
In the above case, if data is a list then new_variable will be list()
How can I create empty variable that has the same data type of another variable?
data = get_data()
new_variable = data.data_type() #just create empty variable
In the above case, if data is a list then new_variable will be list()