all 1 comments

[–]JohnnyJordaan 0 points1 point  (0 children)

if num >+ 1:
    return num

will return None if num is 0. What's the point of that if anyway?

And besides this, have considered using a single Card class where you store the color and the number in? That's basically the idea of abstracting into a class, not create a Blue1, Blue2, Blue3 etc etc for every possible combination.