<\/a>#Mastery29<\/a> <\/span> <\/span><\/a>#TC1014<\/a> <\/span> <\/span>@PablO_CVi<\/span><\/a><\/p>\n This is very useless, because helps to make a good and clean code without too many error to fix, like this example:<\/span><\/p>\n while True:<\/strong> <\/p>\n while q<0:<\/strong> <\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":" #Mastery29 #TC1014 &nbs… Continue reading
try:<\/strong>
q=int(input(“Please enter a non-negative integer number: “))<\/strong>
break<\/strong>
except ValueError:<\/strong>
print(“this is not a integer number, try again: “)<\/strong><\/p>\n
try:<\/strong>
q=int(input(“this is not a positive number,try again: “))<\/strong>
except ValueError:<\/strong>
print (“this is not a integer number, try again: “)<\/strong>
while True:<\/strong>
try:<\/strong>
q=int(input(“Please enter a non-negative integer number: “))<\/strong>
break<\/strong>
except ValueError:<\/strong>
print (“this is not a integer number, try again: “<\/strong>)<\/p>\n