Code QuizAdvanced
Dict vs Set Comprehension
Spot why this comprehension meant to build a lookup dict breaks on indexing.
The code should map each number to its square and look up the square of 2, but it fails. What is the bug?
Spot why this comprehension meant to build a lookup dict breaks on indexing.
The code should map each number to its square and look up the square of 2, but it fails. What is the bug?