Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

dict to array of string python

my_tuple = {"a": 1, "b": 3}
print("Tuple to array: ")

out_put = [f'{key}: {value}' for key, value in my_tuple.items()]

print(out_put)
 
PREVIOUS NEXT
Tagged: #dict #array #string #python
ADD COMMENT
Topic
Name
5+2 =