Sorry this is a real beginner question.I have a file with a number of URL's in it - I want to read the file and do a count for every URL in the file.
file = open("URL.txt", "r")Counter = 0Content = file.read()CoList = Content.split("\n")for i in CoList: if i: Counter += 1print("This is the number of lines in the file")print(Counter)
This works for me, but its a line count and ignoring the URL factor - which I dont know how to do