25 Mar Wednesday 17:00 Python Practice – 23.03.22.
Question:
Create Card class so it can complete the following tasks:
- You can initial the card with value.
- you can compare two cards’ value by method lessThan() and equal()
- you can use print(c1) shows the card value
(Assume the smallest card value is 2, then followed by 3,4,5,6,7,8,9,10,J,Q,K,A)
Sorry, the comment form is closed at this time.