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
576 remaining solutions by
signing in and submitting your own entry
#577
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
577 active golfers, 1541 entries
Leaderboard (lowest score wins):
10/17/2014 at 05:25AM
12/18/2014 at 05:26PM
01/27/2015 at 02:29PM
03/04/2015 at 12:21PM
#335 - Sigurður Ægir Jónsso / @siggiae
03/27/2015 at 08:41AM
09/04/2015 at 07:42PM
02/08/2016 at 12:31PM
07/09/2019 at 02:06PM
09/03/2024 at 04:18PM
12/28/2010 at 11:30PM
12/28/2010 at 11:42PM
12/29/2010 at 12:00AM
12/29/2010 at 12:56AM
12/29/2010 at 01:40PM
12/29/2010 at 08:14PM
12/29/2010 at 11:36PM
12/30/2010 at 06:59AM
01/02/2011 at 01:51PM
01/02/2011 at 03:43PM
01/05/2011 at 08:06PM
01/07/2011 at 09:25PM
01/20/2011 at 09:16PM
01/21/2011 at 12:56PM
12/15/2011 at 05:06AM
01/27/2012 at 10:58AM
02/18/2012 at 10:34PM
10/30/2012 at 04:10AM
01/18/2013 at 06:43PM
05/25/2013 at 03:50PM
07/18/2013 at 09:13PM