01 / 06
Change the punctuation round it
So far you have used square brackets [ ], which is why you kept getting lists.
Change them for braces { } and put key: value at the front, and what you get is a dictionary.
names = ["Yui", "Haruto"]print({n: len(n) for n in names})Result
{'Yui': 3, 'Haruto': 6}