You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SortFile2.py: This is the Code I am having problems with (hopefully is isn't my code)
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2016-01-06.22:01:53.559>created_at=<Date2016-01-06.21:33:53.512>labels= ['expert-IDLE', 'type-bug', 'invalid']
title='.sort() Causing Strings to Be Listed on the same line'updated_at=<Date2016-01-06.22:01:53.557>user='https://bugs.python.org/HassanMahroof'
I am a student @ Burnley College and we were learning how to use the .write(), .close(), .readlines() and .sort().
I have a list of names within a text file which I am trying sort, These are random names generated using my Random Mind. However, when the sorted text file is created, what seems to be under certain circumstances with my list only (or words similar, This bug did not occur within my whole class till I stumbled upon it) it seems to instead of writing each term to seperate lines, it seems to connect two of the words (in this case names) on the same line. I have tried to find a pattern in this madness however being the rookie student I am I can only seem to break things aha. I have attached the 2 files which I am using and Hopefully someone can correct this cause I am confused.
This is a list of the names:
Robertas
Hassan
Bob
Connor
Camera
Billy
Maz
Richard
Mo
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: