0
Good people! I need to do an input check for a job and I’m not getting this right. This is what I got till 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 number and not a string or float for example. But when I run it doesn’t seem to work...