Multiple Choice
Which of the following statements a) , b) or c) is false?
A) String method partition splits a string into a tuple of three strings based on the method's separator argument. The three strings are the part of the original string before the separator, the separator itself, and the part of the string after the separator.
B) Consider a string representing a student's name and grades: 'Amanda: 89, 97, 92'
The following code splits the original string into the student's name, the separator ': ' and a string representing the list of grades:
'Amanda: 89, 97, 92'.partition(': ')
C) To search for the separator from the end of the string instead, use method rpartition to split. For example, consider the following URL string: url = 'http://www.deitel.com/books/PyCDS/table_of_contents.html'
The following call to rpartition splits 'table_of_contents.html' from the rest of the URL:
Rest_of_url, separator, document = url.rpartition('/')
D) All of the above statements are true.
Correct Answer:

Verified
Correct Answer:
Verified
Q6: Consider this text from Shakespeare's Romeo and
Q7: Consider the following code: In [1]: s1
Q8: Which of the following statements a), b)
Q9: Which of the following statements a), b)
Q10: Based on the string sentence = '\t
Q12: Which of the following statements a), b)
Q13: Which of the following statements is false?<br>A)
Q14: Which of the following statements is false?<br>A)
Q15: Which of the following statements a), b)
Q16: Which of the following statements is false?<br>A)