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):
09/04/2013 at 08:33AM
09/21/2013 at 09:26AM
09/27/2013 at 11:06AM
10/27/2013 at 10:34PM
11/04/2013 at 02:10AM
11/06/2013 at 05:59AM
11/26/2013 at 04:30PM
12/20/2013 at 12:58AM
02/14/2014 at 01:17AM
04/10/2014 at 10:08AM
05/10/2014 at 03:34AM
06/30/2014 at 09:57AM
07/16/2014 at 08:52AM
07/27/2014 at 02:08PM
07/31/2014 at 01:40PM
08/19/2014 at 03:11AM
09/09/2014 at 01:31AM
10/10/2014 at 07:05PM
10/24/2015 at 06:37AM
11/10/2015 at 11:37PM
03/17/2016 at 04:55PM
04/10/2016 at 10:29PM
07/31/2016 at 08:51PM
05/27/2017 at 07:59PM
06/06/2017 at 01:01AM
09/25/2018 at 04:33PM
12/27/2018 at 01:27PM
05/06/2019 at 09:51PM
08/03/2019 at 07:14PM
10/07/2019 at 02:18PM