Unit-5 Reflection Worksheet Class 9 AI Python
Unit-5 Reflection Worksheet Class 9 AI Python
a) Wick Van Rossum b) Rasmus Lerdorf c) Guido Van Rossum d) Niene Stom
2 In Python, which of the following characters is used to create single line comment?
a) // b) # c) ! d) /*
a) 3 b) 3.33 c) 1 d) 0
a) . python b) . pl c) . py d) . p
9 ___________ are a sequence of values of any type, and are indexed by integers. They are immutable
and enclosed in ().
a) % b) / c) // d) *
a) ^ b) * c) ** d) //
if 4 + 5 == 10:
print("TRUE")
else:
print("FALSE")
A= “100”
3 What is a variable?
for I in range(1,10,2):
print(I)
if 4 + 5 == 10:
print("TRUE")
else:
print("FALSE")
8.
print( L[1])
L[2]=50
print(L)
A,B=10,20
A,B=B,A
print(A.B)
Sname=int(input(“Enter Name”))
M=int(input(“Enter Mark”)
if M>33
print(“Pass”)
otherwise:
print(“Fail”)