0

My question is about python?

c = "moon" b = "that" a = "honey" print(c + a) is my for this code will run this code or not?

17th Sep 2025, 5:23 PM
Fact town
Fact town - avatar
7 Answers
+ 4
Your code will print "moonhoney" to the console because string concatenation occurred.
17th Sep 2025, 6:37 PM
𝓜đ“Čđ“”đ“Ș 𓃠
𝓜đ“Čđ“”đ“Ș 𓃠 - avatar
+ 3
Hi! You can check this by running your code in the coding section. (Code playground) In the app, visit the Code Playground </> section using the navbar at the top. Otherwise just follow this link: https://code.sololearn.com/ When in there, you will see a green (or any other theme specific color) circular button at the bottom right with a plus sign at the center. Tap on it. Choose the language. https://sololearn.com/compiler-playground/Wek0V1MyIR2r/?ref=app
17th Sep 2025, 5:28 PM
Yaroslav Vernigora
Yaroslav Vernigora - avatar
0
Be careful to give space or tabe in the print line otherwise there no problem
19th Sep 2025, 1:41 AM
Safiullah Mohammadi
Safiullah Mohammadi - avatar
0
The code will output "moonhoney" because when you add strings, they just combine ..
19th Sep 2025, 3:48 AM
Maliisa Brian
Maliisa Brian - avatar
0
Yes moonhoney
19th Sep 2025, 8:09 AM
Chukwuemeka Samuel
Chukwuemeka Samuel - avatar
0
Yes your code will run. All your variables are of the same data type, that is all of them are STRINGS. What you have done is what is called CONCATENATION.
19th Sep 2025, 11:02 AM
Levin Mwanganyi
Levin Mwanganyi - avatar
0
Yes ✅ your code will run. It defines three strings and prints them: c = "moon" b = "that" a = "honey" print(c + a) Output: moonhoney 👉 Note: there’s no space between them. If you want a space: print(c + " " + a) # moon honey
23rd Sep 2025, 1:20 AM
SITHU NYEIN
SITHU NYEIN - avatar