x=lambda a: a**a
print(type(x))
What is the output of the given code?
print("xyyzxyzxzxyy".count('yy'))
What will be the output of the following code?
x = 10
for i in range(x):
print(i)
The command used to set only the x coordinate of the turtle at 45 units is:
What will be the output of the following Python code snippet?
print('abcdef12'.replace('cd', '12'))
What will be the output of the following Python code snippet?
print([if i%2==0: i; else: i+1; for i in range(4)])
Which of the following functions can be used to read data from a file using a file descriptor?
Which are the advantages of functions in python?
What will be the output of the following Python code?
fo = open("foo.txt", "wb")
print("Name of the file: ", fo.name)
fo.flush()
fo.close()
What will be the output of the following Python code?
import turtle
t=turtle.Pen()
t.color(0,1,0)
t.begin_fill()
for i in range(0,4):
t.forward(100)
t.right(90)