What is the output of the following code:
string = "Python is fun"
print(string.split())
print(string.split())
A. ['Python', 'is', 'fun']
B. Python is fun
C. P y t h o n i s f u n
D. ['Python is fun']
Answer: Option B

Join The Discussion