Question: What is output? my_string = 'What is your name?' print(my_string.split('?')) O a. [What is your name', ] O b. [What is your name', '?']
What is output? my_string = 'What is your name?' print(my_string.split('?')) O a. [What is your name', "] O b. [What is your name', '?'] O c. [What is your name?', "] O d. ['What', 'is', 'your', 'name', '?']
Step by Step Solution
3.39 Rating (146 Votes )
There are 3 Steps involved in it
This question is about the output of a Python code snippet that uses the split method on a string v... View full answer
Get step-by-step solutions from verified subject matter experts
