Invalid syntax error : Unable to figure out

(Solution code removed, as posting it publicly is against the honour code of this community)

kindly help in fixing the code

Hi @Aditya_Sarkar,

Whenever this occurs, there’s a syntax error in the previous line. Check if you have any missing brackets or something when defining cost.

Cheers,
Mubsi