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)
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’]
B. [‘a’,’@’,’b’,’@’,’c’,’@’,’d’]
[‘a’,’b’,’c’,’d’]
C. [‘a’,’@’,’b@c@d’]
[‘a’,’b’,’c’,’d’]
D. [‘a’,’@’,’b@c@d’]
[‘a’,’@’,’b’,’@’,’c’,’@’,’d’]
Answer: Option C
Join The Discussion