Computer Science, asked by TbiaSamishta, 1 year ago

a is 2 and b is 6. The list_1 contains numbers from 1 to 50. When you perform the operation list_1[a:b] which in this case is, list_1[2:6], it returns a list of following numbers [3, 4, 5, 6]. Print the elements of this list with each element in a new line.

Answers

Answered by aqibkincsem
2

The following list contains a string, a float, an integer, and another list: spam.


As you might expect, you can assign list values to variables are listed at The one-eth element of numbers, which used to be 123, is now 5.


You can obtain a series of a = [1, 2, 3] >>> b = [4, 5, 6] >>> c = a + b >>> print c [1, 2, 3, 4, 5, 6].

Similar questions