Takahashi san 2
ABC 374Problem 42 of 50
EasyWhat to do
Check if a string (lowercase English letters only) ends with the suffix 'san'. Return 'Yes' if the last 3 characters are 'san', 'No' otherwise.
Key Concepts
if-statements
string manipulation
output
Examples
Input:
s = 'takahashisan'
Output:
Yes
Input:
s = 'aokikun'
Output:
No
Tips for Beginners
- Focus on understanding the logic, not memorizing syntax
- Use print statements to debug your code
- Don't worry about input parsing - the function handles that for you
- If stuck, try writing out your solution on paper first
Python Editor
Loading Python...