Asked by Blue

Which of these is a properly formatted dictionary?
socks = {'light': 4.99, 'medium': 8.99, 'heavy': 9.99]
socks = ['light': 4.99, 'medium': 8.99, 'heavy': 9.99]
socks = [['light': 4.99], ['medium': 8.99], ['heavy': 9.99]]
socks = ('light': 4.99, 'medium': 8.99, 'heavy': 9.99)

Answers

Answered by GPT 3.5
The properly formatted dictionary is:

socks = {'light': 4.99, 'medium': 8.99, 'heavy': 9.99}

Related Questions