Implementing Program Using Python