Exam PCAP-31-03 All QuestionsBrowse all questions from this exam
Question 16

Which of the following invocations are valid? (Choose two.)

    Correct Answer: B, D

    To determine the valid invocations, the methods and functions need to be understood in relation to string operations in Python. 'sort()' is an in-place method available for lists and is not applicable to strings, so 'sort(

Discussion
a4129fdOptions: BD

BD are the right ones

Dave304409Options: BD

B, D is correct

DKAT2023Options: BD

B and D are corrects. Sort for list not string