For training program in Python