Code For Find Method Python