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
Sorry, the comment form is closed at this time.