First Practicum: Wednesday, October 4th

Practice Problems

Another List Question

Consider evaluating an n-card poker hand where n can be any integer that is one or greater. Define a general flush to be any n-card hand where every card contains the same suit. Complete the Boolean function below to return whether parameter cards is a general flush. For example,

def general_flush(cards):