Last active
September 9, 2020 17:20
-
-
Save SahbiOuali13/dfe0c3206e03f753c2e45211b17a112c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xfile = open('course.txt') | |
for line in xfile: | |
print(line) | |
# clean from spaces at end | |
xfile = open('course.txt') | |
for line in xfile: | |
line = line.rstrip() | |
print(line) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment