Hackerrank Solution For Python Command