Generic Function Program In Python Example