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
576 remaining solutions by
signing in and submitting your own entry
#577
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
577 active golfers, 1541 entries
Leaderboard (lowest score wins):
08/11/2023 at 03:38PM
08/11/2023 at 03:38PM
10/10/2023 at 02:57PM
10/31/2023 at 06:11PM
11/24/2023 at 07:04AM
02/08/2024 at 01:09PM
02/14/2024 at 10:21AM
03/11/2024 at 03:29PM
04/05/2024 at 09:00AM
04/06/2024 at 09:02AM
05/01/2024 at 03:28PM
05/27/2024 at 10:24PM
06/29/2024 at 01:24AM
06/29/2024 at 09:05PM
08/01/2024 at 09:40PM
08/10/2024 at 08:11AM
08/14/2024 at 10:09AM
08/16/2024 at 03:48PM
08/27/2024 at 01:50PM
08/29/2024 at 12:28AM
08/31/2024 at 04:42AM
09/09/2024 at 09:19AM
12/29/2010 at 01:29AM
12/29/2010 at 08:03AM
12/29/2010 at 08:15AM
#236 - 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