0
Message when an error happens? (python)
I want to make a message appear when someone doesnt input a number, the code explicitely ask for an int so error appears
1 Odpowiedź
+ 3
use a try, except block
try:
n = int(input())
except ValueError as e:
print('you did not enter a number')