[Solved] Python: Read the file and output the three biggest numbers [closed]

[ad_1]

print(*sorted((int(n.strip()) for n in open(“numbers.txt”)), reverse=True)[:3], sep=”\n”)

This solution worked..!

[ad_2]

solved Python: Read the file and output the three biggest numbers [closed]