Created
February 16, 2014 22:25
-
-
Save anonymous/9041516 to your computer and use it in GitHub Desktop.
Can someone help write a standalone method that produces this output?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
s = %W/This | |
is | |
a | |
test./ | |
print "Number of lines: ", count_lines(s), "\n" | |
# Output: | |
Number of lines: 4 |
havenwood
commented
Feb 16, 2014
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment