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
634 remaining solutions by
signing in and submitting your own entry
#635
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
635 active golfers, 1736 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
07/11/2025 at 06:00AM
07/14/2025 at 01:31AM
07/21/2025 at 04:54PM
07/25/2025 at 06:08PM
08/10/2025 at 02:39PM
09/02/2025 at 01:58PM
10/14/2025 at 05:48PM
10/28/2025 at 07:42PM
#257 - Michael E. Gruen / @gruen
11/01/2025 at 11:29PM
11/22/2025 at 12:41PM
12/12/2025 at 12:42AM
01/18/2026 at 02:45PM
01/18/2026 at 07:40PM
02/01/2026 at 03:45AM
12/29/2010 at 01:29AM
12/29/2010 at 08:03AM
12/29/2010 at 08:15AM
#266 - 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