What is the output of the following code snippet?

sc.parallelize([[1,11],[2,22],[3,33],[4,44]]).map(lambda var1:var1[1]).collect()

[11, 22, 33, 44]

[1, 2, 3, 4]

(11, 22, 33, 44)

(1, 2, 3, 4)

Verified Answer
Correct Option - a

To get all Infosys Certified PySpark Professional Exam questions Join Telegram Group https://rebrand.ly/lex-telegram-236dee

Telegram