Answers for "dict to array of string python"

0

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)
Posted by: Guest on May-11-2021

Code answers related to "dict to array of string python"

Python Answers by Framework

Browse Popular Code Answers by Language