i try to change the line as you said but it give me en error, i should have change some values ?
Error:Traceback (most recent call last):
File "C:\Users\samue\Documents\Documents\prepa\PT\tipe\expérimentation\releves\moyenne_val_triée.py", line 19, in <module>
print('length: {}, ligne: {}',format(len(ligne),ligne))
ValueError: Invalid format specifier
the codewith open("data.txt","r") as f: for i in f: for _ in range(10): ligne=f.readline() print(ligne) ligne.strip().split("\t") print('length: {}, ligne: {}',format(len(ligne),ligne)) t,h,Text,Tint,lux = ligne