lcompilers / lpython

Python compiler
https://lpython.org/
Other
1.37k stars 156 forks source link

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

Open kmr-srbh opened 2 months ago

kmr-srbh commented 2 months ago
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!