Python Periksa apakah string sedang dalam input
try:
val = int(userInput)
except ValueError:
print("That's not an int!")
Annoyed Ant
try:
val = int(userInput)
except ValueError:
print("That's not an int!")