What is the output of the following ?
x = True
y = False
z = True
if z or y and x :
print ("PythonEasy")
else:
print ("Not in PythonEasy")
What is the output of the following code ?
for i in range(0):
print(i)
What is the output of the following code ?
p = {2, -1, 5}
for a in p:
print(a)
What is the output of the following code ?
p = {2, -1, 5}
for a in p.values():
print(a)
What is the output of the following code ?
p = {0: 'x', 1: 'y', 2: 'z'}
for i in p.values():
print(p[i])
What is the output of the following code ?
p = {0: 'x', 1: 'y', 2: 'z'}
for i in p.items():
print(i)
What is the output of the following code ?
p = {0: 'x', 1: 'y', 2: 'z'}
for i in p:
print(i)
What is the output of the following code ?
p = 5678
for i in p:
print(i)
What is the output of the following code ?
p = "5678"
for i in p:
print(i)
What is the output of the following code ?
set1 = {5, 6, 7}
for i in set1:
print(set1.add(i))