CJCoding With Joseph
15free / daySign inCreate account

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
Topics:
Files
📥 Auto-Input:
hello there\n
This input is automatically fed to your program's stdin
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.