What is the output of the following ?
pe = "python easy"
print(pe[5])
What is the output of the following ?
pe = "python easy"
print(pe[2:5])
What is the output of the following code ?
p = [[1, 2, 3],
[4, 5, 6],
[7, 8, 9]]
print(p[1][2])
What is the output of the following code ?
>>> list('python')
What is the output of the following code ?
>>> s = ['python', 'is', 'easy', 'programming', 'language']
>>> s[:-1]
What is the output of the following code ?
>>> s = ['python', 'is', 'easy', 'programming', 'language']
>>> s[:-1][-1]
What is the output of the following code ?
>>> s = [1, 2, 3]
>>> s*3
What is the output of the following code ?
>>> s1 = [23, 24, 25, 12]
>>> s2 = [23, 24, 26]
>>> s1 > s2
What is the output of the following code ?
s1 = [23, 45, 61, 12, 31, 91, 23]
for i in range(1, 7):
s1[i - 1] = s1[i]
for i in range(0, 7):
print(s1[i], end=" ")
What is the output of the following code ?
s = [56, 7, 89, 24, 72, 91, 49]
if 72 in s:
print(True)
else:
print(False)