Page 1 of 1

In many card games, cards are either face up or face down. Add a new instance variable named faceup to the Card class to

Posted: Sat May 14, 2022 4:09 pm
by answerhappygod
In many card games, cards are either face up or face down. Add a
new instance variable named faceup to
the Card class to track this attribute of a card. Its
default value is False. Then add a turn method to
turn the card over. This method resets
the faceup variable to its logical negation.
Note: The program should output in the following format:
Add faceup instance variable to
the Card class
Add turn method to Card class