Good people! I need to do an input check for a job and I can not do this properly. This is what I have until agr:
def verificação1():
while True:
try:
quantidade=int(input("Insira a quantidade: "))
quantidade=str(quantidade)
print("Insira um produto válido.")
continue
except:
break
The purpose of this piece of code is to verify that the quantity is even an integer and not a string or float for example. But when I run this does not seem to work ...