RunTime Error

Hey I am using Python 3 its giving me run time error, but the code works fine in IDLE.

Check for formatting issues and corner cases. Your code is giving exception somewhere.

//