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

1 Answer

0 votes
by

Answer: a
Explanation: Loops over the values.

Click here to read more about Python
Click here to read more about Insurance

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
0 votes
asked May 17, 2019 in Python by Derya
0 votes
asked May 16, 2020 in Python by AdilsonLima
0 votes
...