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):
01/12/2025 at 04:48PM
04/29/2025 at 03:06AM
05/01/2025 at 01:16PM
05/04/2025 at 09:27PM
05/15/2025 at 12:29PM
05/15/2025 at 11:36PM
05/18/2025 at 11:57PM
05/25/2025 at 02:32AM
12/29/2010 at 01:29AM
12/29/2010 at 08:03AM
12/29/2010 at 08:15AM
#252 - Nadja Untendiegruft / @nadjau
12/29/2010 at 01:14PM
12/29/2010 at 04:30PM
12/30/2010 at 09:57PM
12/30/2010 at 11:17PM
12/31/2010 at 11:29AM
01/08/2011 at 08:47PM
01/10/2011 at 07:42PM
01/17/2011 at 11:40PM
01/19/2011 at 10:53PM
02/02/2011 at 08:55PM
03/20/2011 at 01:43AM
04/28/2011 at 08:27PM
05/25/2011 at 02:22PM
06/04/2011 at 05:25PM
07/10/2011 at 01:35AM
07/27/2011 at 02:15AM
08/31/2011 at 03:29AM
11/09/2011 at 01:01PM
12/06/2011 at 05:16PM