Can Someone Kindly Help With These Code Please Python Help

Can Someone Kindly Help With These Code Please Python Help