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
608 remaining solutions by
signing in and submitting your own entry
#609
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
609 active golfers, 1649 entries
Leaderboard (lowest score wins):
02/06/2015 at 06:46AM
#152 - TheProgrammer971 / @tp971
03/13/2015 at 10:27PM
04/09/2015 at 05:23AM
04/29/2015 at 07:09PM
01/05/2016 at 09:56PM
03/10/2016 at 05:26AM
05/13/2016 at 02:06AM
05/26/2016 at 12:18PM
06/18/2016 at 02:04PM
06/18/2016 at 11:05PM
#161 - we’re going to need a bigger bot / @assaflavie
07/09/2016 at 06:01PM
07/14/2016 at 11:49PM
08/23/2016 at 09:10AM
12/31/2016 at 10:56AM
12/31/2016 at 11:18AM
03/03/2017 at 04:23PM
05/27/2017 at 12:30PM
07/03/2017 at 09:35PM
07/16/2017 at 09:05AM
10/26/2017 at 10:06AM
11/20/2017 at 04:18PM
01/02/2018 at 07:14PM
01/27/2018 at 10:57PM
03/02/2018 at 11:59PM
04/29/2018 at 11:41PM
07/07/2018 at 08:41AM
11/26/2018 at 06:08PM
12/04/2018 at 03:43AM
04/16/2019 at 09:40AM
05/04/2019 at 01:31PM