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

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

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

Post 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]
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply