Computer Science, asked by dchathiryan, 5 months ago

3.[‘ab’, ‘ac’, ‘ad’, ‘bb’, ’bc’, ‘bd’]
From the above list use slice operation to get following output [‘ab’, ‘ad’, ‘bc’]

Answers

Answered by swastikrout1973
0

my_list = ['ab', 'ac', 'ad', 'bb', 'bc', 'bd']

print(my_list[::2])

Similar questions