the shortest way to print all lines in the file using python

You can do this:

with open(fname) as f:
    print(f.readlines(),end='')

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top