Vidyalelo
Python · Q23

MCQs for Python Strings: Exam

Programming · Python · question 23

Q23

What is the output of the following code:string = "Python is fun"print(string.split())

A.
['Python', 'is', 'fun']
B.
Python is fun
Answer
C.
P y t h o n i s f u n
D.
['Python is fun']

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board