Full House 2
ABC 386Problem 30 of 50
EasyWhat to do
Given 4 card values, determine if adding exactly one more card can form a Full House (three of one value + two of another). Return 'Yes' if possible, 'No' otherwise. For example, [7,7,7,1] → 'Yes' (add another 1 to get 7,7,7,1,1).
Key Concepts
if-statements
basic condition checking
input and output
data handling
Examples
Input:
cards = [7, 7, 7, 1]
Output:
Yes
Input:
cards = [13, 12, 11, 10]
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...