123233
ABC 380Problem 36 of 50
EasyWhat to do
You are given a 6-digit number. Check if it has exactly one '1', two '2's, and three '3's in it. If it does, say 'Yes', otherwise say 'No'.
Key Concepts
if-statements
counting characters
basic input/output
string manipulation
Examples
Input:
'123233'
Output:
Yes
Input:
'123234'
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...