>>>a=["this", "is", "not", "the"]
>>>print(a[2][-1])
What will be the output of the following Python expression?
~100?
How many except statements can a try-except block have?
What will be the output of the following Python code?
def foo(k):
k[0] = 1
q = [0]
foo(q)
print(q)
What is the output of the following code?
a = "hi "
c = 3 * a + " how are you"
print(c)
Find the output of the following code:
d={'a':1,'b':2,'c':3,'d':4}
c=d.values()
print(type(c))
When we try to access an undefined element or an element that does not exist in a list, which of the following errors occurs?
What will be the output of the following?
a=[0,1,2,3,4,5,6,7,8,9]
c=a[::-1]
d=a[4::-1]
d=a[:-3:-1]
print(c)
print(d)
What is the output of the following code?
import turtle
t=turtle.Pen
t.tilt(100)
t.forward(75)