f = open("abc.
txt","r")
r = [Link]()
c1 = c2 = c3 = 0
for i in r:
if ([Link]('a') or [Link]('A')) and ([Link]('a') or
[Link]('a')):
c1 = c1+1
if [Link]('a') or [Link]('A'):
c2 = c2+1
if [Link]('a') or [Link]('a'):
c3 = c3+1
print("The number of lines startswith and also endswith a:",c1)
print("The number of lines startswith a:",c2)
print("The number of lines endswith a:",c3)