Give this a try, using [ ] to index in that tuple.
valuesfor1 = [('WER', 100)]
valuesfor2= [('WER', 700)]
for tuple1 in valuesfor1:
for tuple2 in valuesfor2:
if tuple1 == tuple2:
if tuple1 < tuple2:
print "values for 2 is greater"
elif tuple1 > tuple2:
print "values for 1 is greater"
print "values are the same"
I am working creating a fully encapsulated, homogeneous singly linked data structure. The Listing class and SinglyLinkedList class that are part of the whole application compile fine, but the problem ...