Exam
Vibe
Home
Engineering
Aerospace Engineering
Biomedical Engineering
Chemical Engineering
Civil Engineering
Computer Science
Electrical Engineering
Electronics and Communication Engineering
Mechanical Engineering
Govt Exam
Banking Exams
Other Government
Police
Railway Exams
SSC
State PSC Exams
Teaching / Education Exams
UPSC Exams
Blog
Contact
๐
Home
โบ
Computer Science
โบ
Python MCQ Questions
โบ
Which function returns the length of a string or list?
Which function returns the length of a string or list?
A. length()
B. size()
C. len()
D. count()
Explanation:
len() returns the number of items in a sequence.
Tags:
Python MCQ Questions
,
Computer Science
ยซ Previous
Next ยป
More from Python MCQ Questions:
What is the correct file extension for Python files?
What will be the output of the following Python code? ```python print(2 ** 3) ```
Which of the following is not a valid Python data type?
What is the result of the following code snippet? ```python x = [1, 2, 3] x.append([4, 5]) print(len(x)) ```
Which of the following methods can be used to remove an item from a Python list?
In Python, which of the following is used to define a block of code?