Unable to understand why Run Error

Sir I am unable to understand why I am getting run error on this code please help me.

Hey @adityamehrotra275 have debugged your code here, it is giving 100% result though it’s not the ideal way so i would also suggest you to do it as the way taught in the video.