← All hands-on practice
Python · 10 min
Change one line
hello.py says the backup did not run. The backup finished. Change that sentence, then run the script.
Start it: free, in your browser, no account
What you will do
- Read hello.py.
- Change "did not run" to "finished" in hello.py.
- Run hello.py and get the new sentence back.
A simulated Ubuntu-style shell. sed only replaces one value: sed -i 's/old/new/' file. There is no editor.