If possible can you tell me what is printed by (line #2 - line #6) This is all t
ID: 3806843 • Letter: I
Question
If possible can you tell me what is printed by (line #2 - line #6)
This is all the information given, no code of functions.
Thanks
my-deck. display ( ) #===== unshuffled deck -=-=- #A&20304 5667a809h10&J;&Q;&Ke; #A 2 3 4 5 6 7 8 9 10 J Q K #Av 2 3 4 5 6 7 8 9 10 J Q K # A 2 3 4 5 6 7 8 9 10J Qe K my deck. shuffle ( ) my-deck. display ( ) #----- shuffled deck ===== #1OvK4 J 3 8e J&56Q44906 10&5+ #4 2 2 6 K K 10 9 6 3 A9 8V # A 4 74 3 5 10+ Q- 84 7 Ke 8 Q 7 # 2 JV 96 4 35 27 A Ae Je QExplanation / Answer
as
card1=my_deck.deal()
print("first card dealt from the deck", card1)#line 1
it will represent 10 of heart suit
print("card suit",card.suit()) #line 2
wil print Heart
PRINT("card rank",card1.rank()) #line 3
I think it will print (as you havent provide logic of rank method)
10
print("card value:",card1.value()) # line 4
10 of heart
print("Deck empty",my_deck.isEmpty()) #line 5
it is not empty
so false
if you had provided the method i would have answered very clearly i just answered according to the images you have sent
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.