TORONTO KIDS COMPUTER CLUB | Aurora Saturday 18:00 Python Homework 20.07.04.
17866
post-template-default,single,single-post,postid-17866,single-format-standard,ajax_fade,page_not_loaded,,qode-theme-ver-7.6.2,wpb-js-composer js-comp-ver-6.10.0,vc_responsive

Aurora Saturday 18:00 Python Homework 20.07.04.

08 Jul Aurora Saturday 18:00 Python Homework 20.07.04.

Question:

Change the code in the method updateNumber(self, num) to complete the following task:

  • if you click 0 and the display is 0, the display will remain 0
  • if you click any number other than 0 and the display is 0, the display changed into the number you clicked
  • if you click any number and the display is not 0, you can add that number in the end in the display
No Comments

Sorry, the comment form is closed at this time.