Why i cant generate this code please help >>> "Spam" + 'eggs' 'Spameggs' | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 8

Why i cant generate this code please help >>> "Spam" + 'eggs' 'Spameggs'

pythotn console

12th Nov 2017, 4:19 AM
Yonis Islam
Yonis Islam - avatar
5 Answers
+ 15
You need to use print()
12th Nov 2017, 5:05 AM
qwerty
qwerty - avatar
+ 10
You are typing into the console. If you type "Spam" + 'eggs' and hit enter, you will get 'Spameggs' Don't type >>>. The 3 chevrons are the prompt. They are not part of the code. If you type >>> "Spam" etc., you will get an error because >>> doesn't mean anything.
12th Nov 2017, 5:22 AM
David Ashton
David Ashton - avatar
+ 6
i will check it bro
12th Nov 2017, 4:49 AM
Yonis Islam
Yonis Islam - avatar
+ 6
thank u all friends
12th Nov 2017, 11:10 AM
Yonis Islam
Yonis Islam - avatar
+ 3
i had generate that result too
28th Nov 2017, 11:33 AM
Hasintha Lahiru
Hasintha Lahiru - avatar