Question: cards.py:https://www.cse.msu.edu/~cse231/Labs/Lab11/cards.py lab11a.py:https://www.cse.msu.edu/~cse231/Labs/Lab11/lab11a.py lab11b.py:https://www.cse.msu.edu/~cse231/Labs/Lab11/lab11b.py strings.txt:https://www.cse.msu.edu/~cse231/Labs/Lab11/strings.txt Assignment overview You will work with a partner on this exercise during your lab session. Two people should work at one

 cards.py:https://www.cse.msu.edu/~cse231/Labs/Lab11/cards.py lab11a.py:https://www.cse.msu.edu/~cse231/Labs/Lab11/lab11a.py lab11b.py:https://www.cse.msu.edu/~cse231/Labs/Lab11/lab11b.py strings.txt:https://www.cse.msu.edu/~cse231/Labs/Lab11/strings.txt Assignment overview You will work with apartner on this exercise during your lab session. Two people should workat one computer. Occasionally switch the person who is typing. Talk toeach other about what you are doing and why so that bothof you understand each step. Part A: Using the Class Methods 1.

cards.py:https://www.cse.msu.edu/~cse231/Labs/Lab11/cards.py

lab11a.py:https://www.cse.msu.edu/~cse231/Labs/Lab11/lab11a.py

lab11b.py:https://www.cse.msu.edu/~cse231/Labs/Lab11/lab11b.py

strings.txt:https://www.cse.msu.edu/~cse231/Labs/Lab11/strings.txt

Assignment overview You will work with a partner on this exercise during your lab session. Two people should work at one computer. Occasionally switch the person who is typing. Talk to each other about what you are doing and why so that both of you understand each step. Part A: Using the Class Methods 1. Examine the Python statements in the file named "labl la py", then extend that program to do the following tasks: a. Display each players' hand after the first card has been played from each hand. b. Display the second card dealt to each player and compare them. c. Display each players' hand after the second card has been played from each hand. d. Display the last card dealt to each player and compare them. Here is the additional output after those modifcations Second card dealt to player #1 Q4 Player #1 hand: [74, 10 7 second card dealt to player #2: Q Player #2 and: CK 2 8 Last card in hand of player #1 7 Last card in hand of player #2 8* of higher rank than 7 Assignment overview You will work with a partner on this exercise during your lab session. Two people should work at one computer. Occasionally switch the person who is typing. Talk to each other about what you are doing and why so that both of you understand each step. Part A: Using the Class Methods 1. Examine the Python statements in the file named "labl la py", then extend that program to do the following tasks: a. Display each players' hand after the first card has been played from each hand. b. Display the second card dealt to each player and compare them. c. Display each players' hand after the second card has been played from each hand. d. Display the last card dealt to each player and compare them. Here is the additional output after those modifcations Second card dealt to player #1 Q4 Player #1 hand: [74, 10 7 second card dealt to player #2: Q Player #2 and: CK 2 8 Last card in hand of player #1 7 Last card in hand of player #2 8* of higher rank than 7

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!