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
len(nams) should be equal to n in your code. All indexes 0 <= i < n "exist".
len(nams)
0 <= i < n