Practice · 1 of 4
Write a Greeting File
CHALLENGE
Difficulty: beginner+25 XP
Write the text Hello, Code Journey! (exactly, no trailing newline) into greeting.txt using a with-block. The test reads the file back.
Press Submit to check your solution.
Back to lesson: Practice: Read & Write Drills