I was trying to put print(kilometer + "length"). I already created the variable for length but it says error. Can someone help? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

I was trying to put print(kilometer + "length"). I already created the variable for length but it says error. Can someone help?

3rd Oct 2020, 8:17 PM
Andres Villarreal
Andres Villarreal - avatar
2 Answers
+ 5
Delete the two double qutation between the word length as the interpreter read the word as string not a variable
3rd Oct 2020, 8:21 PM
Muhammad Galhoum
Muhammad Galhoum - avatar
0
Show your source code. So we can get a better understanding.
3rd Oct 2020, 9:59 PM
Light
Light - avatar