Page 1 of 1

1. Assume list1 = [35, -3, -84, -25, 86, -12, 48, -55, 0, 24], list2 = ['train', 'plane', 'yacht', 'jetski', 'minivan' ]

Posted: Fri May 20, 2022 5:02 pm
by answerhappygod
1. Assume list1 = [35, -3, -84, -25, 86, -12, 48, -55, 0, 24],
list2 = ['train', 'plane', 'yacht', 'jetski', 'minivan' ]. Indicate
the value that will be displayed if the given expression (or
sequence of expressions) is entered at the Python prompt:
max(list1)
2. Assume list1 = [35, -3, -84, -25, 86, -12, 48, -55, 0,
24], list2 = ['train', 'plane', 'yacht', 'jetski', 'minivan' ].
Indicate the value that will be displayed if the following
expression is entered at the Python prompt: len(list2)
3. Assume list1 = [35, -3, -84, -25, 86, -12, 48, -55, 0,
24], list2 = ['train', 'plane', 'yacht', 'jetski', 'minivan' ].
Indicate the value that will be displayed if the following
expression is entered at the Python prompt: list2[1][-1] HINT:
Remember to put single quotes around a string.
4. Assume list1 = [35, -3, -84, -25, 86, -12, 48, -55, 0,
24], list2 = ['train', 'plane', 'yacht', 'jetski', 'minivan' ].
Indicate the value that will be displayed if the following
expression is entered at the Python prompt: list2[1][list1[-2]]
HINT: Remember to put single quotes around a string.
5. Assume list1 = [35, -3, -84, -25, 86, -12, 48, -55, 0,
24], list2 = ['train', 'plane', 'yacht', 'jetski', 'minivan' ].
Indicate the value that will be displayed if the following
expression is entered at the Python prompt: list1+list2 HINT:
Evaluate the answer in IDLE console and then cut and paste the
answer in BB.
6. Assume list1 = [35, -3, -84, -25, 86, -12, 48, -55, 0,
24], list2 = ['train', 'plane', 'yacht', 'jetski', 'minivan' ].
Indicate the value that will be displayed if the following
expression is entered at the Python prompt: list1+[6, 19] HINT:
Evaluate the answer in IDLE console and then cut and paste the
answer in BB.
7. Assume list1 = [35, -3, -84, -25, 86, -12, 48, -55, 0,
24], list2 = ['train', 'plane', 'yacht', 'jetski', 'minivan' ].
Indicate the value that will be displayed if the following lines
are entered at the Python prompt:
list1.append([1,2])
print(list1)
8. Assume list1 = [35, -3, -84, -25, 86, -12, 48, -55, 0,
24], list2 = ['train', 'plane', 'yacht', 'jetski', 'minivan' ].
Indicate the value that will be displayed if the following
expression is entered at the Python prompt: list1.index(48)
9. Assume list1 = [35, -3, -84, -25, 86, -12, 48, -55, 0,
24], list2 = ['train', 'plane', 'yacht', 'jetski', 'minivan' ].
Indicate the value that will be displayed if the following
expression is entered at the Python prompt: list2[-1][:4]