Python Programming - Console Input/Output - Discussion

Discussion Forum : Console Input/Output - General Questions (Q.No. 23)
23.
How can you check if a string ends with a specific suffix?
str.ends_with(suffix)
endswith(str, suffix)
str.endswith(suffix)
check_suffix(str, suffix)
Answer: Option
Explanation:
To check if a string ends with a specific suffix in Python, you can use the endswith() method.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.