#Credits:
#Nevets04
#Fallen
#Uber1337
#Farout
import os
List = []
z = int(raw_input("How many words in your list?: "))
os.system("clear")
for x in xrange(z): List.append(raw_input(""))
List.sort(),os.system("clear")
print "\n".join(List)

Remove all the silly os.system("clear"), they are not needed and work on one specific OS only, then it will work ...

#Credits:
#Nevets04
#Fallen
#Uber1337
#Farout
#import os
List = []
z = int(raw_input("How many words in your list?: "))
#os.system("clear")
for x in xrange(z): List.append(raw_input("Enter word: "))
List.sort()#,os.system("clear")
print "\n".join(List)
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.