lpython icon indicating copy to clipboard operation
lpython copied to clipboard

Bug: Printing multiple strings together does not add a space between them

Open kmr-srbh opened this issue 1 year ago • 0 comments

print("a", "b", "c", "d")

fruits: list[str] = ["apple", "guava", "mango"]
mango: str = fruits.pop()
print("I have got a", mango, "to eat!")

CPython

(base) saurabh-kumar@Awadh:~/Projects/System/lpython$ python ./examples/example.py
a b c d
I have got a mango to eat!

LPython

(base) saurabh-kumar@Awadh:~/Projects/System/lpython$ ./src/bin/lpython ./examples/example.py
abcd
I have got amangoto eat!

kmr-srbh avatar Apr 26 '24 12:04 kmr-srbh