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):
08/08/2013 at 01:30PM
08/12/2013 at 04:30PM
01/02/2014 at 10:28AM
05/02/2014 at 08:02PM
07/27/2014 at 02:06PM
11/23/2014 at 05:28AM
02/29/2016 at 06:00AM
03/23/2018 at 12:04AM
11/26/2018 at 07:12PM
08/18/2019 at 08:10AM
12/27/2023 at 01:41PM
12/29/2010 at 12:06AM
12/29/2010 at 12:07AM
12/29/2010 at 01:07AM
12/29/2010 at 08:46AM
12/29/2010 at 10:42AM
12/29/2010 at 11:52AM
12/29/2010 at 02:16PM
12/30/2010 at 11:03AM
12/30/2010 at 08:25PM
12/30/2010 at 09:10PM
12/31/2010 at 12:26AM
01/02/2011 at 06:39AM
01/02/2011 at 04:54PM
03/09/2011 at 07:33PM
04/19/2011 at 09:06PM
06/17/2011 at 12:59PM
07/15/2011 at 12:01AM
08/29/2011 at 09:13PM