Python If Else Hackerrank Solution For Python