#!/usr/bin/env python # An automated acronym generator AAAG V.2 # Written by Al with input from CJY def main(): print "\nThis program will automatically acronymize your favorite sentences\n" textStr = raw_input("Please enter the text to be Acronymized: ") textSplt = textStr.split() #m = -1 print "\nYour acronym is:" acro = "" for word in textSplt: #textSplt[m + 1] #leftover from a bygone iteration #m = m + 1 acro += word[0] + "." print acro.upper() if __name__ =='__main__': main()