Kindly check the below Python 3 script:
f1 = open('a.txt', 'r')
print(f1.readlines())
f2 = open('b.txt', 'r')
print(f2.readlines())
f3 = open('c.txt', 'r')
print(f3.readlines())
f4 = open('d.txt', 'r')
print(f4.readlines())``
f1.close()
f2.close()
f3.close()
f4.close()
When I am executing the above code, I am always getting the below error:
IOError: [Errno 32] Broken pipe
Kindly provide a solution for the above error.