Question 443: What will be the output of the following code snippet?numbers = [1, 2, 3, 4, 5] sliced_numbers = numbers[1:4] print(sliced_numbers)
tcs
wipro
infosys
general
aptitude
arrays
Slicing is used to extract a portion of a list. In this case, it extracts elements from index 1 to 3.numbers = [1, 2, 3, 4, 5] sliced_numbers = numbers[1:4] print(sliced_numbers)