Sorry for my English, Is there any way to print a list like this,
list = ["a","b","c","d","e"]
to
list_1 = ["a","c","e"]
Sorry for my English, Is there any way to print a list like this,
list = ["a","b","c","d","e"]
to
list_1 = ["a","c","e"]
From what I understand you mean to convert list to list_1. We can do it through slicing.
list = ["a","b","c","d","e"]
list_1 = list[::2]
print(list_1)