+ 1

Can someone please explain to me why the first code is correct and the other one isn't correct. But it's the same result.

body_count=231 Print("his body count: ", body_count) --->> his body count: 231 body_count= "231" print ("his body count:" + body_count) --->> his body count: 231

27th Jun 2022, 1:32 PM
MAnny
MAnny - avatar
3 Respostas
+ 5
It is not the same result: Look at the number of spaces between the st and the 2nd version
27th Jun 2022, 1:36 PM
Lisa
Lisa - avatar
+ 1
Lisa thank you for enlightening me💯💯
27th Jun 2022, 2:52 PM
MAnny
MAnny - avatar
+ 1
Im not sure the first one would work as the p in print is capital.
27th Jun 2022, 9:56 PM
Ben Rogers