[Tutor] string list in alphabetical!
Steven D'Aprano
steve at pearwood.info
Mon Oct 21 02:30:05 CEST 2013
On Sun, Oct 20, 2013 at 07:16:12PM -0500, Sammy Cornet wrote:
> Hello!I'm using python 2.7.5 version and I'm trying to write a program
> related to a file named unsorted_fruits.txt contains a list of 26
.........................^^^^^^^^^^^^^^^^^^^^^
Here you say the file is called unsorted_fruits.txt
> infile = open('Desktop/unsorted_fruits.docx' ,"r")
................^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Here you try to open a file called unsorted_fruits.docx
And likewise for the file you are writing to.
--
Steven
More information about the Tutor
mailing list