Takahashi san 2
ABC 374Problem 42 of 50
EasyWhat to do
You need to check if a given word ends with 'san'. If it does, you will print 'Yes'. If it doesn't, you will print 'No'.
Key Concepts
if-statements
string manipulation
output
Examples
Input:
'takahashisan'
Output:
Yes
Input:
'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...