TORONTO KIDS COMPUTER CLUB | Aurora Saturday 16:30 Python Homework 20.10.24.
18519
post-template-default,single,single-post,postid-18519,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

Aurora Saturday 16:30 Python Homework 20.10.24.

27 Oct Aurora Saturday 16:30 Python Homework 20.10.24.

Question:

Continue to program the code so the back(<-) button and change sign(+/-) button can work:

when you click the back button, it will delete the last digit or decimal. However if there’s only one digit left and that digit is not 0, it will change into 0. check the calculator in your system to see how it works.

when you click the change sign button, you can add a minus sign at front if the number is not equal to zero. If there’s a minus sign in front of the digits, you can remove the minus sign by clicking the change sign button.

No Comments

Sorry, the comment form is closed at this time.