Question #2
Multiple Choice
What is wrong, if anything, with this line of code?
>>> myDict = {'zapato', 'shoes
There should be parantheses around {zapatoshoe')
There should be a colon instead of a comma betueen zapato' and shoe
There is nothing wrong
O You should use double quotes around "zapato" and "shoe."

Respuesta :

Answer:

All options except for the third.

Explanation:

There are three things wrong with this code:

- Items in a dictionary contain keys that corresponds with values, so there should be a colon instead of a comma between the two strings for it to be a dictionary.

- The string shoes needs a closing apostrophe.

- The dictionary is missing a closing bracket.

All options except for the third most accurately indicate the errors of this code.

Hope this helps :)

Answer:

There should be a colon instead of a comma between 'zapato' and 'shoe.'

Explanation:

Got it right on Edge 2020. <3