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
611 remaining solutions by
signing in and submitting your own entry
#612
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
612 active golfers, 1659 entries
Leaderboard (lowest score wins):
05/09/2019 at 07:08PM
06/12/2019 at 10:32PM
06/21/2019 at 01:26PM
09/25/2019 at 03:48PM
10/19/2019 at 12:00PM
11/12/2019 at 03:53AM
11/28/2019 at 04:14PM
12/12/2019 at 10:30AM
04/24/2020 at 02:34AM
06/23/2021 at 02:24PM
08/09/2021 at 07:04PM
12/02/2021 at 01:23AM
01/07/2022 at 02:44PM
02/01/2022 at 08:02PM
02/19/2022 at 02:02PM
03/18/2022 at 11:08PM
05/25/2022 at 03:09AM
06/19/2022 at 01:12AM
07/02/2022 at 03:00AM
08/13/2022 at 07:39PM
08/30/2022 at 06:21PM
09/24/2022 at 02:17PM
10/19/2022 at 10:18PM
#204 - math is what I hate / @mpnmbn
10/29/2022 at 06:57PM
11/25/2022 at 02:52PM
11/26/2022 at 12:49PM
01/01/2023 at 04:19PM
01/04/2023 at 05:53PM
01/20/2023 at 02:40PM
02/22/2023 at 06:59AM