in Python by
Q:
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

▼ Show 1 Answer

0 votes
by

Answer: a
Explanation: Loops over the values.

Python
Learn More with Madanswer

Related questions

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