Home
Python Tutorial
Introduction
Data Type
Statement
Operator
String
Tuple
List
Dictionary
Collections
Function
Class
File
Buildin Function
Buildin Module
Database
Regular Expressions
Thread
Tkinker
wxPython
XML
Network
CGI Web
Windows
loop through « File « Python Tutorial
Python Tutorial
File
loop through
12.7.loop through
12.7.1.
Using Iterators with Files
12.7.2.
Get the longest line
12.7.3.
use the max() built-in function to get the longest string length
12.7.4.
A file iterator
12.7.5.
read a file line by line with a while loop