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
609 remaining solutions by
signing in and submitting your own entry
#610
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
610 active golfers, 1654 entries
Leaderboard (lowest score wins):
01/20/2013 at 08:19PM
01/29/2013 at 08:13AM
02/02/2013 at 01:52PM
02/03/2013 at 07:23PM
02/05/2013 at 08:27PM
02/18/2013 at 09:03PM
03/18/2013 at 01:14AM
03/18/2013 at 01:04PM
03/20/2013 at 08:04PM
03/31/2013 at 05:39AM
03/31/2013 at 03:48PM
04/10/2013 at 10:28PM
04/17/2013 at 02:02PM
04/19/2013 at 07:49AM
05/14/2013 at 07:14AM
05/20/2013 at 09:10PM
05/21/2013 at 11:36AM
06/02/2013 at 10:18PM
06/05/2013 at 09:17PM
07/04/2013 at 08:03AM
07/13/2013 at 08:17AM
07/24/2013 at 06:10AM
07/30/2013 at 02:53PM
#114 - Przemysław Kamiński / @CXLII
08/14/2013 at 05:32AM
08/18/2013 at 12:58PM
10/08/2013 at 12:29AM
10/12/2013 at 08:59AM
10/16/2013 at 09:30PM
10/18/2013 at 07:45AM
12/06/2013 at 01:25PM