Hello

How could I get the following to print out an acronym for each phrase
entered such as if I entered random access memory it word print out RAM?

import string

def main():


    phrase = (raw_input("Please enter a phrase:"))

    acr1 = string.split(phrase)


    acr2 = string.capwords(phrase)


    acr3 = acr2[0]

    print"",acr3

main()

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to