how to sort data inside text file in accending order in python?
how to sort data inside text file in accending order in python? Question: I have a text file containing number integer and string value pairs I want to sort them in ascending order but I am not getting it correct **TextFile.txt ** 87,Toronto 45,USA 45,PAKISTAN 33,India 38,Jerry 30,Tom 23,Jim 7,Love 38,Hate 30,Stress My code def …