← Back to Files
Question 406
Shout Every Line
Shout Every Line
The write step puts three lines into notes.txt: the line read from input followed by two fixed farewells. Open the file again for reading, go through it with for line in f:, remove the trailing newline from each line with rstrip and print the line in upper case with upper(), one per line in file order. Input: one line, no prompt.
Expected Output:
HELLO THERE SEE YOU SOON BYE FOR NOW
= newline. The output ends with a newline — print one after the last line.
Hints3 available
Sign in to use hintsTopics:
Files
1
Tab to indent (Esc then Tab to move on) · Ctrl+Enter to run · Ctrl+Space to expand shortcuts (pr, inp, def)
Your Output
Run your code to see the output here...
Test Cases
Run your code to see test case results.