Hot Summer Deals are Here!
Celebrate with up to 99% off on 17,500 resources
02
Days
09
Hours
46
Mins
35
Secs

Quick Python Dvelopment

Status
This thread has been locked.

StrafeZ

Clothing Manufacturer
Supreme
Feedback score
39
Posts
1,898
Reactions
506
Resources
0
Need a program that takes a list of 6 names, writes em out on seperate lines on a folder.

and second, create a file in notepad consisting of first names, read the file, sort them into alphabetical order then write them back.

They aren't hard and should only take a couple minutes.(I have done this before, just cant remember the code)

Looking for it to be done within the next hour.

Giving a vc
 
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

Doughnut

Entrepreneur | Electrician| Financial Help
Premium
Feedback score
32
Posts
1,298
Reactions
466
Resources
0
So you want there to be a list and then order them and put them into a txt file?
 

Doughnut

Entrepreneur | Electrician| Financial Help
Premium
Feedback score
32
Posts
1,298
Reactions
466
Resources
0
Done,[DOUBLEPOST=1526413979][/DOUBLEPOST]This isn't development vvvvv for a start this is pissy easy coding.
StrafeZ
here is the code you need.

Names = ["Name 1" , "Name 2" , "Name 3" , "Name 4" , "Josh" , "Name 6"]
print (Names)
print ("Type name to get them in alphabetical order:")
Names.sort()
print (Names)


(All you have to do is add the names in the List on the top line)
 
Last edited:

Samuel

The most serious person ever.
Supreme
Feedback score
33
Posts
2,210
Reactions
1,572
Resources
0
Why Python? Yuck
Probably because Python is very widely used, quite powerful and gives you very easy portability. Python is great once you start using it - saves a lot of time.
 
Status
This thread has been locked.
Top