Python Fundamentals WS 1
Python Fundamentals WS 1
A. (python)
B. (“Python”)
C. (‘P’ , ‘y’ , ‘t’ , ‘h’ , ‘o’ , ‘n’)
D. None of the above
11. Which command we use cane use To remove string “hello” from list1, Given,
list1=[“hello”]
A. list1.remove(“hello”)
B. list1.pop(list1.index('hello'))
C. both a & b
D. none of these
14. Which statement does not show any error after execution? Given L=[1,2,3,4]
A. print(L+L)
B. print(L*L)
C. print(L-L)
D. All of the mentioned
A. Delhi#Mumbai#Chennai#Kolkata#
B. Mumbai#Chennai#Kolkata#Mumbai#
C. Mumbai# Mumbai #Mumbai # Delhi#
D. Mumbai# Mumbai #Chennai # Mumbai
A. T1 + (23)
B. T1 + [3]
C. Both of the above
D. None of the above
pow(x,y,z)
A. (x**y) / z
B. (x / y) * z
C. (x**y) % z
D. (x / y) / z
A. for loop
B. while loop
C. do-while loop
D. None of the above.