Code is right but it is showing time limit exceded
Time limit exceded
@mayurjhode55
your code was not terminating hence it was showing TLE. and the invalid operation was not written correctly. it lacked a space between ‘.’ and ‘Try’ and a “\n”.
i have corrected your code.
The code you send is not of this question .