convert tuple to array python

Solutions on MaxInterview for convert tuple to array python by the best coders in the world

showing results for - "convert tuple to array python"
Mohamed
03 Sep 2017
1import numpy 
2
3my_tuple = ([8, 4, 6], [1, 2, 3])
4print("Tuple to array: ")
5print(numpy.asarray(my_tuple))