Q110
What will be the output of the following Python code? s="a@b@c@d" a=list(s.partition("@")) print(a) b=list(s.split("@",3)) print(b)
A.
[‘a’,’b’,’c’,’d’]
[‘a’,’b’,’c’,’d’]
[‘a’,’b’,’c’,’d’]
B.
[‘a’,’@’,’b’,’@’,’c’,’@’,’d’]
[‘a’,’b’,’c’,’d’]
[‘a’,’b’,’c’,’d’]
C.
[‘a’,’@’,’b@c@d’]
[‘a’,’b’,’c’,’d’]
Answer[‘a’,’b’,’c’,’d’]
D.
[‘a’,’@’,’b@c@d’]
[‘a’,’@’,’b’,’@’,’c’,’@’,’d’]
[‘a’,’@’,’b’,’@’,’c’,’@’,’d’]
Answer: Option C
Solution
Answer: Option C
No explanation is given for this question Let's Discuss on Board