Majority Element - python code

I am getting error in the 5th test case as run time error, please help me to resolve this issue

hi @deepaksrawat1906 by mistake the doubt came to me (I’m cpp TA) please ask again and ill inform this to tech team, sorry for the inconvenience (u can close this one)