What will be the output of the following Python code x = 123 for i in x: print(i)

1.  1 2 3

2.  123

3.  error

4.  none of the mentioned

4

error

Explanation :
No Explanation available for this question

What will be the output of the following Python code d = {0: 'a', 1: 'b', 2: 'c'} for i in d: print(i)

1.  0 1 2

2.  a b c

3.  0 a 1 b 2 c

4.  none of the mentioned

4

0 1 2

Explanation :
No Explanation available for this question

What will be the output of the following Python code d = {0: 'a', 1: 'b', 2: 'c'} for x, y in d: print(x, y)

1.  0 1 2

2.  a b c

3.  0 a 1 b 2 c

4.  none of the mentioned

4

none of the mentioned

Explanation :
No Explanation available for this question

What will be the output of the following Python code d = {0: 'a', 1: 'b', 2: 'c'} for x, y in d.items(): print(x, y)

1.  0 1 2

2.  a b c

3.  0 a 1 b 2 c

4.  none of the mentioned

4

0 a 1 b 2 c

Explanation :
No Explanation available for this question

What will be the output of the following Python code d = {0: 'a', 1: 'b', 2: 'c'} for x in d.keys(): print(d[x])

1.  0 1 2

2.  a b c

3.  0 a 1 b 2 c

4.  none of the mentioned

4

a b c

Explanation :
No Explanation available for this question

What will be the output of the following Python code d = {0: 'a', 1: 'b', 2: 'c'} for x in d.values(): print(x)

1.  0 1 2

2.  a b c

3.  0 a 1 b 2 c

4.  none of the mentioned

4

a b c

Explanation :
No Explanation available for this question

What will be the output of the following Python code d = {0: 'a', 1: 'b', 2: 'c'} for x in d.values(): print(d[x])

1.  0 1 2

2.  a b c

3.  0 a 1 b 2 c

4.  none of the mentioned

4

none of the mentioned

Explanation :
No Explanation available for this question

What will be the output of the following Python code d = {0, 1, 2} for x in d.values(): print(x)

1.  0 1 2

2.  None None None

3.  error

4.  none of the mentioned

4

error

Explanation :
No Explanation available for this question

What will be the output of the following Python code d = {0, 1, 2} for x in d: print(x)

1.  0 1 2

2.  {0, 1, 2} {0, 1, 2} {0, 1, 2}

3.  error

4.  none of the mentioned

4

0 1 2

Explanation :
No Explanation available for this question

What will be the output of the following Python code d = {0, 1, 2} for x in d: print(d.add(x))

1.  0 1 2

2.  0 1 2 0 1 2 0 1 2 …

3.  None None None

4.  None of the mentioned

4