Question: Multiple choice or Fill in blank questions: Pythons string and tuple sequences are _______. a) mutable b) immutable Answer: Write output for the following statement:

Multiple choice or Fill in blank questions:

  1. Pythons string and tuple sequences are _______.

a) mutable

b) immutable

Answer:

  1. Write output for the following statement:

mylist = [1, 2, a, b, c]

print (mylist[1:3])

Answer:

  1. Given mylist[1,2,3,4,5,6,7,8,9,10], del mylist[-2] removes the value ____ from the list
  1. 2
  2. 3
  3. 8
  4. 9

Answer:

  1. Assume you have a list called mylist. The slice expression ____ creates a new list with the element of names in reverse order:

Answer:

  1. To sort a list in descending order, call list method sort with the optional keyword argument ________ set to true.

Answer:

  1. Whats the result for the operation: 2 in [2, 3,4]

Answer:

  1. Whats the result for the operation: numbers = [1, 2, 3, 4, 5] print(numbers.index(10))

Answer:

  1. Whats the result for the operation: a = [1, 2, 3] print(a.index(3))

Answer:

  1. Whats the result for the operation: print(max((1, 6, 3)))

Answer:

  1. Whats the result for the operation: print(list(('a', 'b', 21)))

Answer:

python

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!