+ 1

Why it gives syntax error on the line 17?

def project(s): if s >= 86400: x = s//86400 print(x,"d") s = s -(x*86400) elif s>= 3600: y = s//3600 print(y,"h") s = s-(y*3600) elif s >= 60: z = s//60 print(z,"m") elif 0<s<60: print(s,"s") s = int(int(input('Enters your number: ')) project(s)

17th Apr 2018, 7:13 AM
Mukhammadjon Kholmirzaev
Mukhammadjon Kholmirzaev - avatar
2 Answers
+ 16
is this what u wanted ??? it's working fine 👇 https://code.sololearn.com/cGgX0B9Uc5D5/?ref=app
17th Apr 2018, 7:40 AM
🌛DT🌜
🌛DT🌜 - avatar
+ 1
Brackets always come in pairs. Count your brackets on line 17.
17th Apr 2018, 10:59 AM
Brian Larkin
Brian Larkin - avatar