When QLineEdit() is used in text it appears to create a bug in lists and dictionaries,this code works:
from PyQt5.QtWidgets import *
a=[1,2]
b=a[0]
print(b)
but when a line edit is added python will crash
from PyQt5.QtWidgets import *
c=QLineEdit()
a=[1,2]
b=a[0]
print(b)
I have found this when using the Anaconda package on multiple computers, can anyone suggest a work around which does not involve not using lists or dictionaries.