f = open("testSEt.txt") for sayi in f : can=sayi.split(",") ati=random.sample(can,3) x=0 print((ati[1])) olasilik=0 if ati[1]>=5: olasilik=olasilik+1 print(olasilik) f.close
Quote: File "firstlearning.py", line 14, in <module>
if ati[1]>=5:
TypeError: '>=' not supported between instances of 'str' and 'int'
Hello guys how can I fix the problem.(in the text I have just numbers)