We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 459d05d commit 60cdf23Copy full SHA for 60cdf23
Chapter Seven: Files/ch07_hw1.py
@@ -0,0 +1,6 @@
1
+print('Exercise 1: Write a program to read through a file and '
2
+ 'print the contents of the file (line by line) all in upper case.')
3
+fname = open ('mbox.txt')
4
+for line in fname:
5
+ line = line.rstrip()
6
+ print(line.upper())
0 commit comments