0
How can I make this program stop if it recognises the input is a letter and not a number
https://code.sololearn.com/c1Ac0x0WfC45/?ref=app https://code.sololearn.com/c1Ac0x0WfC45/?ref=app
3 Respostas
+ 6
Raphael Shay
#edit
try:
check = int(input())
print("Is a number")
except(ValueError):
print("Not a number")
+ 3
Raphael Shay You're welcome!
https://code.sololearn.com/cGB5UM5o90bT/?ref=app
+ 1
Thanks!