import turtle
t=turtle.Pen()
t.clear()
t.isvisible()
Which method is used to add a element to a list at a certain position.
What will be the output of the following Python code?
x=1
def cg():
global x
x=x+1
cg()
x
What will be the output of the following Python code?
a = (0, 1, 2, 3, 4)
b = slice(0, 2)
print(a[b])
What is the output of the following code?
def printLine(text):
print(text, 'is awesome.')
printLine('Python')