Answers for "python data structures 9.4"

0

python data structures 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)
Posted by: Guest on August-28-2020

Code answers related to "python data structures 9.4"

Python Answers by Framework

Browse Popular Code Answers by Language