Vidyalelo
Python · Q99

MCQs for Python Strings: Exam

Programming · Python · question 99

Q99

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

A.
1
B.
True
Answer
C.
3
D.
2

Answer: Option B

Solution

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