Q. Which of these can be used to loop through a dictionary?

  • (A) `for i in dict`
  • (B) `for i in dict.items()`
  • (C) `for i in dict.keys()`
  • (D) All of the above
πŸ’¬ Discuss
βœ… Correct Answer: (D) All of the above
Explanation: All mentioned methods can be used to iterate over dictionaries.
Explanation by: Mr. Dubey
All mentioned methods can be used to iterate over dictionaries.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
66
Total Visits
πŸ“½οΈ
12 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
82%
Success Rate