Hello :) I wrote a little code that creates a dictionary of three people and their favorite numbers.
favorite_numbers={"lore":[5, 19], "louise":[7,24],"annie":[1,2]}
I'd want an output that prints the name of each person along their favorite numbers
for prs, numb in favorite_numbers.items():
pers= prs
numb= favorite_numbers[prs]
print(f"{pers}'s fav numbers are {numb}")
this is how i've done it. the thing I dislike, however, is that the numbers appear in square brackets my output ís:
lore's fav numbers are [5, 19]
louise's fav numbers are [7, 24]
annie's fav numbers are [1, 2]
I'd want it to be:
lore's fav numbers are 5, 19
louise's fav numbers are 7, 24
annie's fav numbers are 1, 2
so my question is, how should I print my dictionary so that I get rid of the brackets? Thank you in advance