tday=datetime.date.today()
print(tday.month())
Answer: 8
tday=datetime.date.today()
print(tday.month())
Answer: 8
def num(m):
t1 = time.time()
for i in range(0,m):
print(i)
t2 = time.time()
print(str(t2-t1))
num(3)
Answer: 1 2 3 The time taken for the execution of the code
l=[-2, 4]
m=map(lambda x:x*2, l)
print(m)
Answer: Address of m
def to_upper(k):
k.upper()
x = ['ab', 'cd']
print(list(map(to_upper, x)))
Answer: none of the mentioned
x = [12, 34]
print(len(''.join(list(map(str, x)))))
Answer: 4
x = abcd
print(list(map(list, x)))
Answer: none of the mentioned
Answer: sometimes
Answer: False
Answer: e
Answer: name of the current user logged in
pickle.HIGHEST_PROTOCOL
Answer: 4
Answer: The overall design of the program is addressed before the details
random.choice('sun')
Answer: either s, u or n
Answer: none of the mentioned
import sys
eval(sys.stdin.readline())
"India"
Answer: ‘India’
Answer: position
import turtle
t=turtle.Pen()
t.right(90)
t.forward(100)
t.heading()
Answer: 270.0
import turtle
t=turtle.Pen()
t1=turtle.Pen()
t2=turtle.Pen()
t.forward(100)
t1.forward(100)
t2.forward(100)
t1.left(90)
t1.forward(75)
t2.right(90)
t2.forward(75)
Answer: T
Answer: Design and implementation of specific functionality to be incorporated into a program
Answer: Provides a means of reducing the size of the program