Which of the following is the correct output of the given Python code? STR =…
PYQ KVS TGT/PGT 2026Modified — slightly modified from the official paper; see the solution
Which of the following is the correct output of the given Python code?
STR = "MIRROR OF FUTURE"
print(STR.partition("OF"))- A.
('MIRROR ', 'OF', ' FUTURE')
- B.
['MIRROR', 'OF', 'FUTURE']
- C.
('MIRROR', 'FUTURE')
- D.
['MIRROR', 'FUTURE']
Attempted by 509 students.
Sign up free to check your answer
Sign up freeLoading lesson…

