Sail E0 Webinar
Question
What is the output of the following?d = {0: 'a', 1: 'b', 2: 'c'}for x in d.keys():    print(d[x])
Options:
A .  0 1 2
B .  a b c
C .  0 a 1 b 2 c
D .  none of the mentioned
Answer: Option B


Loops over the keys and prints the values.



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers