0
#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)
2
Contributors
1
Reply
2
Views
8 Years
Discussion Span
Last Post by vegaseat
0

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)
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.