Rancho Labs interview question

Python programming questions on If else conditions and for loop