How to answer? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to answer?

Whenever a question asked like what is the output of this code >>>spam='eggs' >>>print('spam'*3) the answer box is of 2words only how can i answer eggseggseggs

14th Mar 2017, 12:29 PM
CoderAss
CoderAss - avatar
4 Answers
+ 5
How you have it writen the output is spamspamspam but if you remove the single quotes from inside the print function it would be eggseggseggs. Read the the question carefully and see if is that the problem.
15th Mar 2017, 9:52 PM
Ulisses Cruz
Ulisses Cruz - avatar
0
The answer should be spamspamspam, but not eggseggseggs I think
14th Mar 2017, 4:49 PM
Stanislav Syarkevich
Stanislav Syarkevich - avatar
0
There's a Variable for spam #Stanislav
15th Mar 2017, 2:38 AM
CoderAss
CoderAss - avatar
0
eggseggseggs
13th Oct 2022, 9:49 AM
Sumit Prajapati
Sumit Prajapati - avatar