Change the content of a string
This docstring is a complete lie. Fix it.
Start file
def add(a, b):
""" Subtracts "x" from "y" """
return a + b
End file
def add(a, b):
""" Adds "a" to "b" """
return a + b
2c2
< """ Subtracts "x" from "y" """
---
> """ Adds "a" to "b" """
Solutions
The best way to learn is to practice. Below, you will find some of the solutions other golfers have entered. To unlock higher ranked solutions, submit your own entry which does as well or better than the solutions you can currently see - climb the ladder!
Check out these helpful resources to improve your Vim skills... Game on.
Unlock
576 remaining solutions by
signing in and submitting your own entry
#577
Frank Hui / @frankhui -
Score: 69 -
12/29/10 @ 06:44
:1,$ s/Subtracts/Adds/<CR>:1,$ s/x/a/<CR>:1,$ s/from/to/<CR>:1,$ s/y/b/<CR>:w<CR>:q<CR>
0 comments
577 active golfers, 1541 entries
Leaderboard (lowest score wins):
01/09/2011 at 04:20PM
01/10/2011 at 07:40PM
01/13/2011 at 05:04AM
01/13/2011 at 05:30AM
01/14/2011 at 12:27PM
#36 - Ben Griffiths / @beng
01/15/2011 at 08:57PM
01/17/2011 at 10:52AM
01/19/2011 at 09:00PM
01/26/2011 at 11:39PM
02/01/2011 at 09:41PM
02/06/2011 at 08:16AM
02/12/2011 at 12:31PM
02/12/2011 at 12:42PM
02/23/2011 at 11:02AM
03/31/2011 at 10:46AM
04/23/2011 at 12:19PM
05/09/2011 at 02:46PM
06/11/2011 at 12:08PM
07/01/2011 at 10:29PM
07/15/2011 at 01:01PM
07/15/2011 at 04:33PM
08/02/2011 at 08:48AM
08/09/2011 at 12:16AM
08/20/2011 at 11:51PM
08/28/2011 at 07:25AM
08/28/2011 at 08:42AM
#57 - Petro Verkhogliad / @vpetro
08/28/2011 at 11:45PM
08/31/2011 at 10:04PM
09/04/2011 at 12:39AM
10/07/2011 at 12:46AM