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
608 remaining solutions by
signing in and submitting your own entry
#609
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
609 active golfers, 1649 entries
Leaderboard (lowest score wins):
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
10/23/2024 at 09:08PM
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
09/22/2011 at 09:55AM
10/12/2011 at 06:04PM
12/26/2011 at 01:52AM
02/12/2012 at 08:23PM