Rows = input(len(f.readlines()))


Rows = int(Rows)


for i in range(Rows) :


정확히 이거인데 뭐가 문제? 


'40' 뭐 이런게 아니면 형변환 왜 안됨?