Created
November 14, 2016 16:10
-
-
Save JustinAzoff/63902c8d127693df35f3f683d01948e1 to your computer and use it in GitHub Desktop.
output length of longest lines
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
#!/usr/bin/env python2 | |
import sys | |
m=2000 | |
for line in sys.stdin: | |
if len(line) > m: | |
print len(line) | |
m = len(line) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment