Posts by Anselmo Costa • 11 points
1 post
-
0
votes11
answers38715
viewsA: How to check if the variable string value is number?
def henum(num): numeros= ['0','1','2','3','4','5','6','7','8','9'] for digito in num: if digito in numeros: return True else: return False num = input("Digite um número: ") if henum(num): print("é…