Python Lambda If Function In Power