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
606 remaining solutions by
signing in and submitting your own entry
#607
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
607 active golfers, 1646 entries
Leaderboard (lowest score wins):
07/31/2014 at 01:40PM
08/19/2014 at 03:11AM
09/09/2014 at 01:31AM
10/10/2014 at 07:05PM
10/24/2015 at 06:37AM
11/10/2015 at 11:37PM
03/17/2016 at 04:55PM
04/10/2016 at 10:29PM
07/31/2016 at 08:51PM
05/27/2017 at 07:59PM
06/06/2017 at 01:01AM
09/25/2018 at 04:33PM
12/27/2018 at 01:27PM
05/06/2019 at 09:51PM
08/03/2019 at 07:14PM
10/07/2019 at 02:18PM
11/20/2019 at 12:57PM
06/04/2020 at 05:12PM
08/11/2021 at 07:45PM
08/16/2021 at 02:39PM
11/01/2021 at 03:40PM
01/10/2022 at 01:33AM
02/12/2022 at 10:38PM
03/09/2022 at 08:02PM
05/13/2022 at 05:18AM
08/31/2022 at 11:47PM
11/01/2022 at 07:00PM
11/08/2022 at 10:18PM
01/10/2023 at 01:14PM
05/01/2023 at 05:17PM