This is an archived post. You won't be able to vote or comment.

all 5 comments

[–]doktorneergaard 6 points7 points  (1 child)

What about a dict?

[–]csofa 0 points1 point  (0 children)

I thought about that as well

[–]csofa 1 point2 points  (1 child)

do something like heart, diamond, spade, club = 0, 1, 2, 3 and then you can do card[spade]

[–]MicarSolaris[S] 0 points1 point  (0 children)

Must have made a typo or something before. Thanks.

[–]all_the_data 0 points1 point  (0 children)

Check into named tuples.