Advanced Python Quiz
Advanced Python Quiz
print(foo())
print(foo())
```
- A) [1], [1]
- B) [1], [1, 1]
- C) [1], []
- D) [1, 1], [1, 1]
- Answer: B) [1], [1, 1]
14. Which of the following functions is used to get the length of a dictionary?
- A) len()
- B) count()
- C) size()
- D) length()
- Answer: A) len()
print(foo())
```
- A) 1
- B) 2
- C) Error
- D) None
- Answer: B) 2
These questions cover various aspects of Python and are designed to test fundamental as well as
advanced understanding of the language.
fi