Computer Science, asked by ajeetkumar41, 5 months ago

Q :- What will be the output of following code

a={1:"A",2:"B",3:"C"}

for i in a:

print(i,end=" ")

Answer please ​

Answers

Answered by Naaz786naaz
37

Answer:

Answer: b

Explanation:

The values of a dictionary can be accessed using keys but the keys of a dictionary can’t be accessed using values.

advertisement

Answered by allysia
72

Answer:

The output should be:

1 2 3

Explanation:

The i variable will take the key values and end=" " will attach all the values of i are to a same line separated by " ".

Similar questions