Python Program Using Input And Output Ports