I have a file.txt which is saving as list
['Joe', '101', '/home/Joe', '43242', '/home/Joe/1.txt']
How to read the last element in the file here it is '/home/Joe/1.txt'
I tried to read
with open ('file.txt', r) as fr:
fd = fr.readlines()
print (fd[-1])