Q:

pyton como identificar se é numero

def is_simple_number(value):
    if not value.strip().replace('-', '').replace('+', '').replace('.', '').isdigit():
        return False
    try:
         float(value)
    except ValueError:
         return False
    return True
0
case = input(escolha um valor de 0 a 10)
if type(case) != int:
   print("Digite apenas numeros!")
else:
   #--processo
0

New to Communities?

Join the community