What is the output of the following piece of code?
What is the output of the following piece of code?
B
Answer :- >>> a='ant' >>> b="bat" >>> c='camel' >>> print(a,b,c,sep='"') ant"bat"camel
NO correct anwer Correct answer is ant"bat"camel
Answer B
I know that B is technically the right answer, but what's with those weird symbols where the quotation marks should be?
D. The sep="" is used to separate but because there is nothing in the speech marks the a, b, c variables will be printed together antbatcamel
the answer is : ant"bat"camel
a='ant' b='bat' c='camel' print(a,b,c,sep='"') Answer is ant"bat"camel
did you take exam recently if so - is this dump still valid ?
ant"bat"camel
Correct answer is C
I hate this one but the answer is D. Its very weird but the correct answer is ant"bat"camel
Can someone share the entire dump?
ant"bat"camel
Answer is B: B. ant"bat"camel
ant"bat"camel is correct, it's B
I get C every time. Whether with single or double-quotes.
Ant"Bat'Camel Answer is B.