Report Bug
Qus :

What will be the output of the following Python code?

print("xyyzxyzxzxyy".endswith("xyy", 0, 2))

Qus

निम्नलिखित Python कोड का आउटपुट क्या होगा?

print("xyyzxyzxzxyy".endswith("xyy", 0, 2))


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


Solution
D. False



Explanation
The function returns False if the given string does not end with the specified substring.



Report Bug