A=int(input('Enter the first of three numbers: '))
B=int(input('Enter the second of three numbers: '))
C=int(input('Enter the third of three numbers: '))
list=[A,B,C]
SL=sorted(list)
if SL[0]<0:
if SL[1]-1==SL[0]:
print (list('they are good'))
else: print (list('not good'))
elif SL[2]-1==SL[1]:
print (list('they are good')
else: print (list('not good'))
I keep getting a syntax error on the last line in between else and : and i have no idea why it's wrong when i have the exact same line 3 lines above. Any help much appreciated.