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):
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
10/24/2024 at 12:18AM
12/02/2024 at 02:35AM
01/03/2025 at 11:00PM
02/14/2025 at 12:31AM
05/15/2025 at 07:35PM
05/17/2025 at 12:35AM
05/20/2025 at 10:04PM
06/23/2025 at 03:23AM
08/04/2025 at 02:26PM
08/16/2025 at 03:21PM
10/19/2025 at 12:56AM
12/29/2010 at 04:59AM
12/29/2010 at 11:54PM
01/01/2011 at 06:42AM
01/02/2011 at 05:48PM
01/10/2011 at 04:41AM