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):
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
10/06/2024 at 09:07AM
10/09/2024 at 10:00AM
10/20/2024 at 10:44AM
10/29/2024 at 07:40PM
11/02/2024 at 05:12PM
11/27/2024 at 03:29PM
12/07/2024 at 02:12PM
01/04/2025 at 03:07PM