Structures de données Python 9.4
name = input("Enter file:")
if len(name) < 1 : name = "mbox-short.txt"
handle = open(name)
count = 0
for i in handle:
if i.startswith("From "):
a = i.split()
b = a[1]
if b.startswith("cwen"):
count+= 1
if count == 5:
print(b,count)
Comfortable Cod