_summary_: Take the inputs from the user in proper sucession
(self)
| 197 | # then open it |
| 198 | |
| 199 | def take_inputs(self): |
| 200 | """_summary_: Take the inputs from the user in proper sucession""" |
| 201 | while True: |
| 202 | while True: |
| 203 | try: |
| 204 | # self.num1 = float(input("Enter The First Number: ")) |
| 205 | # self.num2 = float(input("Enter The Second Number: ")) |
| 206 | pprint("Enter your number") |
| 207 | # validation check must be done |
| 208 | break |
| 209 | except ValueError: |
| 210 | pprint("Please Enter A Valid Number") |
| 211 | continue |
| 212 | # To let the user to know it is time to exit. |
| 213 | pprint("Press 'q' to exit") |
| 214 | # if self.num1 == "q" or self.num2 == "q": |
| 215 | # exit() # Some how I need to exit it |
| 216 | |
| 217 | def greeting(self): |
| 218 | """_summary_: Greet the user with using Audio""" |