I have an issue in Python, I have this text file:
250449825306
331991628894
294132934371
334903836165
And I want to add it to a list of ints in python for example: A=[x1,x2,x3]
I have written this:
f = open('your_file.txt', encoding = "utf8")
z = f.readlines()
print(z)
But it returns z=["x1,x2,x3,x4"]
I am kinda stuck, is there anything I can try here?
Thanks in advance!