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
611 remaining solutions by
signing in and submitting your own entry
#612
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
612 active golfers, 1659 entries
Leaderboard (lowest score wins):
07/29/2013 at 01:47PM
08/29/2013 at 03:52PM
09/08/2013 at 03:07PM
09/25/2013 at 09:10PM
12/17/2013 at 08:42PM
01/03/2014 at 03:29AM
01/31/2014 at 11:39AM
04/27/2014 at 09:12AM
07/27/2014 at 02:09PM
01/02/2015 at 11:12PM
#491 - lpm11 / T. Tsunoda / @lpm11
02/16/2015 at 11:57AM
03/20/2015 at 04:54PM
03/20/2015 at 04:55PM
03/20/2015 at 04:55PM
06/07/2015 at 08:59PM
10/20/2015 at 02:09AM
05/04/2016 at 09:35PM
#498 - cohost.org/quiggy / @quiggy
05/19/2016 at 07:47PM
10/14/2016 at 07:45PM
03/30/2017 at 02:03PM
07/13/2017 at 11:45AM
01/01/2018 at 06:45PM
02/06/2018 at 07:30PM
03/13/2018 at 02:17AM
05/26/2018 at 02:11AM
05/11/2019 at 04:24PM
06/13/2019 at 11:52AM
08/31/2019 at 03:25AM
07/09/2021 at 11:45AM
07/24/2021 at 03:53PM