d_or_p = 3
if d_or_p in (range (3,4)):
PH = -1
while PH == -1:
blaa = int(input ("what is your phone number?"))
if len(str(blaa)) in range(12) and blaa >= 0:
PH = 1
else:
print ("Please enter number under 5")
print ("woot")
how do i make this handle the error?

New Topic/Question
Reply



MultiQuote




|