TORONTO KIDS COMPUTER CLUB | PMCA Sunday 14:00 Python Homework 21.05.30.
19554
post-template-default,single,single-post,postid-19554,single-format-standard,ajax_fade,page_not_loaded,,qode-theme-ver-7.6.2,wpb-js-composer js-comp-ver-6.8.0,vc_responsive

PMCA Sunday 14:00 Python Homework 21.05.30.

02 Jun PMCA Sunday 14:00 Python Homework 21.05.30.

Question 1:
Create Card class so it can complete the following tasks:

  • You can initial the card with value.
  • you can compare two card object like c1>c2.
  • 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)


Question 2:
Continue modify the fraction class we made in the class, so you can compare two fraction objects.

No Comments

Sorry, the comment form is closed at this time.