python
For this lab you are being provided with a file named lastnames.txt. Your mission is determine how many last names in this file are longer than XXX characters (where XXX is a number you read from the user).
So your program will need to:
f=open("lastnames.txt","r")
n=int(input("Enter last name count"))
count=0
for x in f:
if len(x)>n:
count=count+1
print(count,"names are longer than length ",n)

Note : Please comment below if you have concerns. I am here to help you
If you like my answer please rate and help me it is very Imp for me
python For this lab you are being provided with a file named lastnames.txt. Your mission is...