counting words
def stringtonumber():
list=[]
print("enter the names you want")
for i in range(10):
name=raw_input(i)
list.append(name)
print("after appending list is:")
print(list)
list.sort()
print("after sorting list is")
print(list)
x=raw_input("enter the word which you want to count")
list.count(x)
i want to get user input for searching words and then count it.here is code which i m writing .so please give me the solution
list=[]
print("enter the names you want")
for i in range(10):
name=raw_input(i)
list.append(name)
print("after appending list is:")
print(list)
list.sort()
print("after sorting list is")
print(list)
x=raw_input("enter the word which you want to count")
list.count(x)
i want to get user input for searching words and then count it.here is code which i m writing .so please give me the solution

