Sail E0 Webinar
Question
What is the output when the following code is executed ?"Welcome to Python".split()
Options:
A .  [Welcome", to", Python"].
B .  (Welcome", to", Python")
C .  {Welcome", to", Python"}
D .  Welcome", to", Python"
Answer: Option A


split() function returns the elements in a list.



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers