Question: What will be stored in substrings after the following code snippet has run? fruits = Apple Banana Guava Fig Pear Orange substrings = fruits.split (
What will be stored in substrings after the following code snippet has run? fruits = "Apple Banana Guava Fig Pear Orange" substrings = fruits.split (" ") 'Apple' ['Apple', 'Banana', 'Guava', 'Eig', 'Pear', 'orange'] ["Apple, Banana, Guava, Fig, Pear, Orange"] 'Apple', 'Banana', 'Guava', 'Fig', 'Pear', 'orange
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
