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
591 remaining solutions by
signing in and submitting your own entry
#592
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
592 active golfers, 1588 entries
Leaderboard (lowest score wins):
12/28/2010 at 11:43PM
12/29/2010 at 05:08PM
12/29/2010 at 05:13PM
12/29/2010 at 05:41PM
12/29/2010 at 08:55PM
12/30/2010 at 01:42AM
12/30/2010 at 04:31AM
12/30/2010 at 05:27AM
#9 - h_east (トロッコ6個) / @h_east
12/30/2010 at 09:18AM
12/30/2010 at 11:35AM
12/31/2010 at 06:53AM
#12 - Dmytro Shteflyuk / @kpumuk
12/31/2010 at 07:39AM
12/31/2010 at 12:41PM
#14 - Behnam Esfahbod / @zwnj
12/31/2010 at 02:21PM
12/31/2010 at 10:01PM
01/01/2011 at 01:20PM
01/01/2011 at 06:06PM
01/01/2011 at 06:51PM
01/02/2011 at 11:37AM
01/02/2011 at 06:21PM
01/02/2011 at 11:49PM
01/03/2011 at 05:58PM
01/04/2011 at 08:16PM
01/05/2011 at 02:36AM
01/05/2011 at 06:23AM
01/05/2011 at 10:52AM
#27 - Ujjwol Lamichhane / @Ujjwol
01/06/2011 at 11:49AM
01/08/2011 at 04:11AM
01/09/2011 at 09:09AM
01/09/2011 at 09:21AM