Skip to content

Commit 1f3bb23

Browse files
Create Assignment 7.1.py
1 parent 41f55fa commit 1f3bb23

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Diff for: Assignment 7.1.py

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Use words.txt as the file name
2+
fname = input("Enter file name: ")
3+
fh = open(fname)
4+
for line in fh:
5+
line = line.rstrip()
6+
print(line.upper())

0 commit comments

Comments
 (0)