Ändrat exit till sys.exit

This commit is contained in:
Jack-Benny Persson 2024-02-19 17:09:37 +01:00
parent 4b1fbe1822
commit 67546ff1ac

View File

@ -1,12 +1,12 @@
#!/usr/bin/env python3
import sys
import math
try:
t = int(input("Ange täljaren: "))
n = int(input("Ange nämnaren: "))
except ValueError:
exit("Ange endast heltal")
sys.exit("Ange endast heltal")
sgd = math.gcd(t, n)