+ 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)
2 ответов
+ 16
is this what u wanted ???
it's working fine 👇
https://code.sololearn.com/cGgX0B9Uc5D5/?ref=app
+ 1
Brackets always come in pairs. Count your brackets on line 17.