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):
#451 - Matthieu Honel / @ocus
01/28/2011 at 05:03PM
03/04/2011 at 12:31AM
03/22/2011 at 07:12AM
05/01/2011 at 05:58PM
06/13/2011 at 03:22PM
07/15/2011 at 01:14PM
09/16/2011 at 01:16AM
09/16/2011 at 01:18AM
12/12/2011 at 07:39PM
03/11/2012 at 02:11PM
04/21/2012 at 02:52AM
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
#474 - くま ก็็็็็็็็็็็็็ʕ•͡ᴥ•ʔ ก้้้้้้้้้้้ 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