Q. Which one of the following is the use of function in python?
β
Correct Answer: (C)
Functions are reusable pieces of programs
Dear candidates you will find MCQ questions of Python here. Learn these questions and prepare yourself for coming examinations and interviews. You can check the right answer of any question by clicking on any option or by clicking view answer button.
Share your questions by clicking Add Question
A = [[1, 2, 3],
[4, 5, 6],
[7, 8, 9]]
i = 0
while i < 5:
print(i)
i += 1
if i == 3:
break
else:
print(0)
x = 'abcd'
for i in range(len(x)):
print(i)
def addItem(listParam):
listParam += [1]
mylist = [1, 2, 3, 4]
addItem(mylist)
print(len(mylist))
z=set('abc$de')
'a' in z
round(4.576)