Hi, I am in my first semester of programming and I am sort of confused on how to do one of my assignments. My teacher is pretty picky on the way that our programs are written and will straight up give you a 0 if it is not correct. I know that for this assignment he mainly wants us to use the for and range functions but all the examples he gave us are dealing with only numbers. I am an example based learner and it is difficult for me to write a program simply off of definitions. If someone could help me with this I would be so grateful. And also, feel free to explain your reasoning for the way you choose to write it. I am not trying to cheat I am trying to learn!

THE PROBLEM: