in Python by
What is the output of the following?

d = {0: 'a', 1: 'b', 2: 'c'}
for x in d.values():
    print(d[x])

a. a b c
b. 0 a 1 b 2 c
c. 0 1 2.
d. none of the mentioned

1 Answer

0 votes
by

Answer: a
Explanation: Loops over the values.

Related questions

0 votes
asked Jun 13, 2019 in Python by Derya
0 votes
asked Jun 13, 2019 in Python by Derya
0 votes
asked Jun 13, 2019 in Python by Derya
...