by nickbarnwell · 14y ago · 0 comments
has_degree = lambda years, total: years == total
has_degree(3,4)
=> False
Edit: Renamed method attended_college method to has_degree to better reflect functionality.Suffice it to say, I don't think has_degree can be implemented as a one-liner.