Can you provide me some python code for given suggestions?