Report Bug
Qus :

What will be the output of the following Python code?

d = {0: 'a', 1: 'b', 2: 'c'}
for i in d:
    print(i)

Qus

निम्नलिखित Python कोड का आउटपुट क्या होगा?

d = {0: 'a', 1: 'b', 2: 'c'}
for i in d:
    print(i)


A. 0 1 2
B. a b c
C. 0 a 1 b 2 c
D. none of the mentioned


Solution
A. 0 1 2



Explanation
Loops over the keys of the dictionary.



Report Bug