I have this code and I can not get the number -1 shown. Give an error:
Not supported between instances of 'str' and 'int'.
From what I've seen from other forums there is a comparison of strings with integers. How can I overcome this?
list1=[2,2, 'a', 31, int(-1), 'b']
list2=[1, 3, 40]
list1[len(list1):]=list2
list1.append(5)
print (len(list1))
print (sorted (list1[7:]))
print (min(list1))
print (list1)