Skip to content

Better compressed print statements #140

@textdev-0

Description

@textdev-0

It's possible to compress print statements more then they are now, by replacing end= and newlines by putting them on the same line.

E.G.
Input:
print("Option A")
print("Option B")
print("Option C")
print("Option D", end="--")
print("Option E", end-"")

Output:
A=print
A('Option A')
A('Option B')
A('Option C')
A('Option D',end='--')
A('Option E',end-'')

A more optimal way:
print('Option A\nOption B\nOption C\nOption D--Option E', end='')

Great work though, cut my code size like in half

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions