TORONTO KIDS COMPUTER CLUB | Aurora Wednesday 18:30 Python Practice 21.08.11.
19822
post-template-default,single,single-post,postid-19822,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 Wednesday 18:30 Python Practice 21.08.11.

14 Aug Aurora Wednesday 18:30 Python Practice 21.08.11.

Question:
please add two methods in the class HeroApp, check_int() and check_real().

The check_int() method will take 2 arguments str_num and attr and complete the following data validation:

  • should not be empty.
  • should be integer number
  • should in between 1- 100000

The check_real() method will take 2 arguments str_num and attr and complete the following data validation:

  • should not be empty.
  • should be float number
  • should in between 0.1~999.9
No Comments

Sorry, the comment form is closed at this time.