51. What will be the output of the following Python code?
x = 123
for i in x:
print(i)
x = 123
for i in x:
print(i)
52. What will be the output of the following Python code?
d = {0, 1, 2}
for x in d:
print(x)
d = {0, 1, 2}
for x in d:
print(x)
53. What will be the output of the following Python code?
d = {0, 1, 2}
for x in d.values():
print(x)
d = {0, 1, 2}
for x in d.values():
print(x)
54. What will be the output of the following Python code?
d = {0: 'a', 1: 'b', 2: 'c'}
for i in d:
print(i)
d = {0: 'a', 1: 'b', 2: 'c'}
for i in d:
print(i)
55. 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)
d = {0: 'a', 1: 'b', 2: 'c'}
for x, y in d.items():
print(x, y)
56. What will be the output of the following Python code?
d = {0, 1, 2}
for x in d:
print(d.add(x))
d = {0, 1, 2}
for x in d:
print(d.add(x))
57. 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])
d = {0: 'a', 1: 'b', 2: 'c'}
for x in d.keys():
print(d[x])
58. What will be the output of the following Python code?
d = {0: 'a', 1: 'b', 2: 'c'}
for x in d.values():
print(x)
d = {0: 'a', 1: 'b', 2: 'c'}
for x in d.values():
print(x)
59. 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])
d = {0: 'a', 1: 'b', 2: 'c'}
for x in d.values():
print(d[x])
60. 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)
d = {0: 'a', 1: 'b', 2: 'c'}
for x, y in d:
print(x, y)