in python how to end the code after 10 input

Solutions on MaxInterview for in python how to end the code after 10 input by the best coders in the world