Informatics Practices

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

d1.len()

Python Dictionaries

1 Like

Answer

The syntax of len() function is len(dict).

The corrected code is:

len(d1)

Answered By

1 Like


Related Questions