Question: In Python I created a Card class with parameters(suit, rank) suit is a number 1-4 and rank is a number 1-13. The total number of

In Python I created a Card class with parameters(suit, rank)

suit is a number 1-4 and rank is a number 1-13.

The total number of cards is 52

I want to write a code that will take the numbers 1-52 and convert them into 2 integers so that

1 = card(1,1)

2=card(1,2)

14=(2,1)

50 = (4,11)

52 = (4,13)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!