enumerate and zip
QuizEasy-MediumPython only
Which statements are true? Pick all that apply.
list(zip([1, 2, 3], "ab"))is[(1, 'a'), (2, 'b')]zip([1, 2, 3], "ab", strict=True)raises ValueError when consumedenumerate(["a", "b"], start=1)gives (1, "a") and (2, "b")for i in len(items):loops over the indexes
This question is part of Pro+
Pro+ opens every question in Interview Prep and the mock interview. Every article and the first 2 questions of each topic stay free. Hands-on Selenium and API tasks follow their course lesson's own lock.