What type of data is: a=[(1,1),(2,4),(3,9)]?
s = "\t\tWelcome\n"
print(s.strip())
What is the output when we execute the list(“Abekus”)?
What will be the output of the following Python code?
>>>example="helloworld"
>>>example[::-1].startswith("d")
What will be the output of the following Python code?
lst = [1, 2, 3]
lst[3]
Consider a list with elements [3, 4, 5, 20, 3], what is list1 after list.extend([34, 5])
What will be the output of the following Python code?
a = 10
b = 20
c = 3
d = b // a
print(a / 0)
print(d)
e = a * c
print(c)
f = a - b
print(f)
What will be the output of the following Python code?
data = [[[1, 2], [3, 4]], [[5, 6], [7, 8]]]
def ttt(m):
v = m[0][0]
for row in m:
for element in row:
if v < element: v = element
return v
print(ttt(data[0]))
What will be the output of the following Python code?
What will be the output of the following Python code?
veggies = ['carrot', 'broccoli', 'potato', 'asparagus']
veggies.insert(veggies.index('broccoli'), 'celery')
print(veggies)