Login
Remember
Register
Ask a Question
What is the output of the following?
0
votes
asked
Jun 13, 2019
in
Python
by
Derya
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
#python
#java
#python-tutorial
#ball-python
Python-questions-answers
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Oct 31, 2019
by
Robin
Answer: a
Explanation: Loops over the values.
...