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/08/2011 at 08:47PM
01/10/2011 at 07:42PM
01/17/2011 at 11:40PM
01/19/2011 at 10:53PM
02/02/2011 at 08:55PM
03/20/2011 at 01:43AM
04/28/2011 at 08:27PM
05/25/2011 at 02:22PM
06/04/2011 at 05:25PM
07/10/2011 at 01:35AM
07/27/2011 at 02:15AM
08/31/2011 at 03:29AM
11/09/2011 at 01:01PM
12/06/2011 at 05:16PM
12/31/2011 at 01:51AM
01/29/2012 at 05:35AM
02/04/2012 at 01:13PM
04/27/2012 at 03:11AM
05/10/2012 at 12:09PM
05/29/2012 at 10:58PM
07/19/2012 at 09:35PM
07/20/2012 at 11:04AM
08/07/2012 at 07:01AM
08/21/2012 at 08:18PM
10/17/2012 at 01:24PM
12/24/2012 at 09:38PM
03/23/2013 at 07:43PM
04/09/2013 at 01:44AM
07/10/2013 at 02:10AM
08/26/2013 at 09:15AM