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
You can try something like this
list = ["a", "b", "C", "d", "e", "f", "r"] for i in range(0, len(list), 2): print list[i] if len(list) % 2 == 1 and i == len(list)-1: break print list[i+1];