KnowledgeBoat Logo
|

Informatics Practices

Find errors and rewrite the same after correcting the following code:

d1(9) = 90 

Python Dictionaries

3 Likes

Answer

In Python, we assign the key-value pair using square brackets [], not parentheses ().

The corrected code is:

d1[9] = 90

Answered By

1 Like


Related Questions