Archived
1
0
Fork 0
This repository has been archived on 2024-05-10. You can view files and clone it, but cannot push or open issues or pull requests.
PY4E/Assignment 7.1/main.py

8 lines
212 B
Python
Raw Normal View History

2021-09-08 10:33:48 -05:00
# If accepting input to the file name:
#filename = input("Please enter the file name to read: ")
filename = "words.txt"
filehandle = open (filename, 'r')
for line in filehandle:
print(line.rstrip().upper())