Examveda

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: Option D


This Question Belongs to Python Program >> Strings In Python

Join The Discussion

Related Questions on Strings in Python