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):
12/13/2013 at 04:17PM
12/20/2013 at 03:11PM
12/21/2013 at 10:20PM
01/05/2014 at 10:10AM
01/28/2014 at 08:59AM
02/19/2014 at 12:43PM
03/16/2014 at 10:03AM
03/22/2014 at 04:36PM
03/28/2014 at 09:50PM
03/30/2014 at 06:23AM
04/12/2014 at 03:52PM
05/01/2014 at 05:56PM
06/04/2014 at 06:56AM
06/26/2014 at 05:54PM
07/09/2014 at 07:23PM
07/13/2014 at 06:57PM
07/15/2014 at 12:56PM
07/18/2014 at 08:32PM
07/24/2014 at 11:34PM
07/27/2014 at 02:04PM
07/27/2014 at 02:08PM
07/27/2014 at 02:12PM
08/08/2014 at 01:59PM
09/20/2014 at 06:21PM
09/23/2014 at 10:33AM
09/24/2014 at 11:05PM
10/21/2014 at 05:36AM
11/03/2014 at 07:18PM
01/07/2015 at 03:57AM
01/14/2015 at 04:50PM