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)
Are there any code examples left?
New code examples in category 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)