f = open('/etc/motd', 'r')longest = 0allLines = f.readlines()f.close()for line in allLines: linelen = len(line.strip()) if linelen > longest: longest = linelenprint longest
Name (required)
email (will not be published) (required)
Website