def Main(name):
#generating a lettermap.
CharacterMapDict {'a':1,'b':2,'c':3,'d':4,'e':5,'f':6,'g':7,'h':8,'i':9,'j':1,'k':2,'l':3,'m':4,'n':5,'o':6,'p':7,'q':8,'r':9,'s':1,'t':2,'u':3,'v':4,'w':5,'x':6,'y':7,'z':8}
This is supposed to map the letters to numbers in the dictionary. The user is supposed to enter their name via Raw_input() or Input(), or whichever method can be used. The name is supposed to be parsed, turned into numbers, and then the numbers crunched by the digital sum function. This function should produce a value, and then I want each value to be mapped to or associated with a print("words..words..").
I figure for the print stuff I could use some type of loop, similar to c's case statements or if statements.
Am I on the right track?
This is only my second python program so I'm not all that experienced but I figure it would be challenging enough.
Any suggestions on how to get this part to work would be appreciated.
This post has been edited by E-Thug: 18 May 2011 - 05:58 PM

New Topic/Question
Reply



MultiQuote








|