I am stuck on a problem due to a small portion of my code. I can't find why that portion of code is not working properly.
By debugging each portion of my code, I found which lines are causing unexpected results. I have written that lines below. I have defined the list here so that I do not have to copy my full code.
list1=["-7","-7","-6"]
for test in list1:
test=int(test)
print( type( list1[0] ) )
I expected type to be int
but output is coming as str
instead.