Do you have any suggestions for this script?
file.txt:
17
1
11
1
13
15
11
5
7
21
19
17
13
19
11
7
1
3
5
3
11
9
7
15
13
21
19
17
27
25
23
9001
9003
9023
9044
9055
9007
Code:
l2=[]
with open("file.txt") as f:
data = f.read()
l1 = list(data.split('\n'))
for item in l1:
if item>=9000:
l2.append(item)
else:
item = item+9000
l2.append(item)
print(l2)
Error:
if item>=9000:
TypeError: '>=' not supported between instances of 'str' and 'int'