script python pour trier le contenu du fichier

with open('shopping.txt', 'r') as r:
    for line in sorted(r):
        print(line, end='')
vettiyankan