Jun-16-2017, 12:42 AM
if I have four kinds of data like
for example if a method takes in m = l1,l3
it returns (1,4,5)
note that assuming I don't know the data type of elements in m when using this method
maybe there is a special method I can use but I don't know it
l1 = 1 #int l0 = 8 #int l2 = 2,3 #tuple l3 = 4,5 #tupleIs there an elegant single method to combine any two of these data and return a flattened tuple
for example if a method takes in m = l1,l3
it returns (1,4,5)
note that assuming I don't know the data type of elements in m when using this method
maybe there is a special method I can use but I don't know it