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):
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
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
02/08/2011 at 05:28PM
05/17/2011 at 08:10AM
06/05/2011 at 01:28PM
09/11/2012 at 10:45AM
11/15/2012 at 08:06PM
04/25/2013 at 02:21AM
07/11/2013 at 08:18PM
08/08/2013 at 12:31PM
09/28/2013 at 07:00AM
10/05/2013 at 10:50PM
10/17/2014 at 05:25AM
12/18/2014 at 05:26PM
01/27/2015 at 02:29PM
03/04/2015 at 12:21PM
#360 - Sigurður Ægir Jónsso / @siggiae
03/27/2015 at 08:41AM