4
I used the command print()
concatenating a variable, but the output prints extra spaces. If I use the io.write()
, this problem does not occur. Why this problem happens to the print()
?
Example:
name = "Peter"
print("The length of the name is: ", #name)
Expected result: The length of the name is: 5
Result obtained: The length of the name is: 5
Thanks a lot, I could understand. From what I understood print() is to use to print without formatting, if you have these cases is to use io.write()
– LeBones