Vidyalelo
Python · Q42

MCQs for Python Strings: Exam

Programming · Python · question 42

Q42

What will be the output of the following Python code? print("xyyzxyzxzxyy".endswith("xyy", 0, 2))

A.
0
B.
1
C.
True
D.
False
Answer

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board