my_file = open("file1.txt", "r")
total = 0

for line in my_file:
    total = total + len(line)

my_file.close()

print("the total length is:", total)

