In my program, user inputs number n, and then inputs n number of strings, which get stored in a list.
n
I need to code such that if a certain
Could it be more useful for you to use the length of the list len(n) to inform your decision rather than checking n[i] for each possible length?
len(n)
n[i]