Skip to content

Variable of list[i32] type has unnecessary newline character while printing. #1477

Closed
@faze-geek

Description

@faze-geek

A new line character is encountered before and after the list[i32] type. I checked integers, floats, strings which give expected answers when printed together.

def main1():
    a : i32 = 1
    s : str ="abc"
    l : list[i32] = [1,2,3,4,5]
    print(a,l,s)

main1()

(lp) C:\Users\kunni\lpython>python try.py
1 [1, 2, 3, 4, 5] abc

(lp) C:\Users\kunni\lpython>src\bin\lpython try.py
   Creating library try.lib and object try.exp
1
[1, 2, 3, 4, 5]
abc

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions