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
633 remaining solutions by
signing in and submitting your own entry
#634
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
634 active golfers, 1732 entries
Leaderboard (lowest score wins):
05/03/2012 at 12:15AM
05/22/2012 at 02:47PM
05/23/2012 at 04:48PM
07/13/2012 at 03:32AM
07/27/2012 at 07:18AM
08/12/2012 at 08:39PM
08/22/2012 at 10:46AM
08/23/2012 at 09:26PM
08/30/2012 at 08:08PM
10/29/2012 at 05:26PM
11/18/2012 at 05:48PM
02/24/2013 at 10:14PM
#493 - くま ก็็็็็็็็็็็็็ʕ•͡ᴥ•ʔ ก้้้้้้้้้้้ 55 / @kumack55
04/03/2013 at 02:42PM
05/01/2013 at 10:39PM
05/21/2013 at 05:08AM
07/13/2013 at 12:21AM
07/29/2013 at 01:47PM
08/29/2013 at 03:52PM
09/08/2013 at 03:07PM
09/25/2013 at 09:10PM
12/17/2013 at 08:42PM
01/03/2014 at 03:29AM
01/31/2014 at 11:39AM
04/27/2014 at 09:12AM
07/27/2014 at 02:09PM
01/02/2015 at 11:12PM
#507 - lpm11 / T. Tsunoda / @lpm11
02/16/2015 at 11:57AM
03/20/2015 at 04:54PM
03/20/2015 at 04:55PM
03/20/2015 at 04:55PM