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
606 remaining solutions by
signing in and submitting your own entry
#607
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
607 active golfers, 1646 entries
Leaderboard (lowest score wins):
11/28/2011 at 01:07PM
12/08/2011 at 06:18AM
12/17/2011 at 01:07AM
12/19/2011 at 03:23AM
12/29/2011 at 03:28PM
01/06/2012 at 05:07AM
02/06/2012 at 04:32AM
02/12/2012 at 05:03AM
02/13/2012 at 02:22AM
02/22/2012 at 02:09PM
02/22/2012 at 04:34PM
03/13/2012 at 08:43PM
05/09/2012 at 02:18PM
05/26/2012 at 09:55PM
05/29/2012 at 02:15AM
06/25/2012 at 09:36PM
07/13/2012 at 06:01AM
08/11/2012 at 03:45PM
08/25/2012 at 10:39PM
09/05/2012 at 07:15PM
09/17/2012 at 02:35PM
09/18/2012 at 05:33PM
10/01/2012 at 02:10AM
10/06/2012 at 10:37AM
10/30/2012 at 10:51AM
11/10/2012 at 05:55PM
12/02/2012 at 09:20AM
12/14/2012 at 06:10PM
01/07/2013 at 02:04AM
01/18/2013 at 02:31PM