Why this code doesn't work? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why this code doesn't work?

n = Python print("I love " +n+)

10th Feb 2018, 12:09 PM
Alihuseyn Kengerli
Alihuseyn Kengerli - avatar
2 Answers
+ 10
n = "Python"; print("I love " +n);
10th Feb 2018, 12:25 PM
D_Stark
D_Stark - avatar
+ 4
well obviously you said n = Python without quotation marks to signify it's a string. second error you don't need a + after the n, then it will work
10th Feb 2018, 12:25 PM
Strange
Strange - avatar