Report Bug
Qus :

What will be the output of the following Python code?

print("xyyzxyzxzxyy".endswith("xyy"))

Qus

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

print("xyyzxyzxzxyy".endswith("xyy"))


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


Solution
B. True



Explanation
The function returns True if the given string ends with the specified substring.



Report Bug