FAQ: Technical Interview Problems in Python: Lists - Pair Sum: Naive

This community-built FAQ covers the “Pair Sum: Naive” exercise from the lesson “Technical Interview Problems in Python: Lists”.

Paths and Courses
This exercise can be found in the following Codecademy content:

Technical Interview Practice: Python

FAQs on the exercise Pair Sum: Naive

There are currently no frequently asked questions associated with this exercise – that’s where you come in! You can contribute to this section by offering your own questions, answers, or clarifications on this exercise. Ask or answer a question by clicking reply (reply) below.

If you’ve had an “aha” moment about the concepts, formatting, syntax, or anything else with this exercise, consider sharing those insights! Teaching others and answering their questions is one of the best ways to learn and stay sharp.

Join the Discussion. Help a fellow learner on their journey.

Ask or answer a question about this exercise by clicking reply (reply) below!

Agree with a comment or answer? Like (like) to up-vote the contribution!

Need broader help or resources? Head here.

Looking for motivation to keep learning? Join our wider discussions.

Learn more about how to use this guide.

Found a bug? Report it!

Have a question about your account or billing? Reach out to our customer support team!

None of the above? Find out where to ask other questions here!

This exercise is a little too easy, since as soon as I loaded it in my browser there was a fully-functioning solution already pre-populated in the code editor! It’s more or less the naive solution I was already thinking of but I would still have appreciated a chance to code it myself.

1 Like

I’m getting this and it should be True, but it says False.

[[0, 4], [1, 3]]
should equal any of
[[1, 3], [0, 4]]
False

[[5, 6]]
should equal any of
[[5, 6]]
False

None
should equal
None
True

[[0, 2], [0, 5]]
should equal any of
[[0, 2], [0, 5]]
False

Agreed. From the way the instructions are worded, it seems this working code should not have been pre-populated for us.