MCPcopy Create free account
hub / github.com/geekcomputers/Python / take_inputs

Method take_inputs

advanced_calculator.py:199–215  ·  view source on GitHub ↗

_summary_: Take the inputs from the user in proper sucession

(self)

Source from the content-addressed store, hash-verified

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"""

Callers 2

__init__Method · 0.95
__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected