1.

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.

Answer»

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].



Discussion

No Comment Found