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
628 remaining solutions by
signing in and submitting your own entry
#629
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
629 active golfers, 1711 entries
Leaderboard (lowest score wins):
01/07/2011 at 09:25PM
01/20/2011 at 09:16PM
01/21/2011 at 12:56PM
12/15/2011 at 05:06AM
01/27/2012 at 10:58AM
02/18/2012 at 10:34PM
10/30/2012 at 04:10AM
01/18/2013 at 06:43PM
05/25/2013 at 03:50PM
07/18/2013 at 09:13PM
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
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