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
519 remaining solutions by
signing in and submitting your own entry
#520
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
520 active golfers, 1346 entries
Leaderboard (lowest score wins):
01/01/2011 at 07:25PM
02/07/2011 at 11:16PM
05/01/2011 at 12:31AM
01/27/2012 at 01:44PM
12/10/2019 at 08:43PM
12/29/2010 at 01:09AM
12/29/2010 at 01:24AM
12/29/2010 at 02:27AM
12/29/2010 at 04:32AM
12/29/2010 at 05:11PM
12/30/2010 at 03:09AM
12/30/2010 at 05:05AM
01/02/2011 at 04:33PM
12/29/2010 at 07:52AM
12/29/2010 at 01:03PM
04/30/2011 at 09:48PM
07/23/2021 at 01:07AM
12/29/2010 at 01:31AM
12/30/2010 at 10:42AM
01/16/2011 at 11:26AM
07/24/2014 at 09:40AM
11/25/2014 at 06:52AM
12/29/2010 at 12:27AM
12/29/2010 at 12:43AM
12/29/2010 at 12:50AM
01/31/2013 at 09:32PM
12/29/2010 at 01:33AM
12/29/2010 at 03:10AM
12/29/2010 at 01:40PM
12/29/2010 at 03:39AM