3.[‘ab’, ‘ac’, ‘ad’, ‘bb’, ’bc’, ‘bd’]
From the above list use slice operation to get following output [‘ab’, ‘ad’, ‘bc’]
Answers
Answered by
0
my_list = ['ab', 'ac', 'ad', 'bb', 'bc', 'bd']
print(my_list[::2])
Similar questions
Physics,
2 months ago
Math,
2 months ago
Social Sciences,
2 months ago
English,
5 months ago
Business Studies,
5 months ago
History,
11 months ago
Math,
11 months ago