<DIV>Hi,</DIV>  <DIV>&nbsp;</DIV>  <DIV>I have a few doubts in python programming. C if any of u can help me out. </DIV>  <DIV>&nbsp;</DIV>  <DIV>1. </DIV>  <DIV>In a file called <CODE>string_stuff.py</CODE> i have to write a function called <CODE>frequencies</CODE> that takes a string as a parameter and returns a dictionary where the keys are the characters from the string and each value is an integer indicating the number of times the key appeared in the string. </DIV>  <DIV>&nbsp;</DIV>  <DIV>2.</DIV>  <DIV>Similary in the same file <CODE>string_stuff.py</CODE>, have to write a function called <CODE>locations</CODE> that takes a string as a parameter and returns a dictionary where the keys are the characters from the string and each value is a list indicating the indices in the string at which the key appears, sorted in increasing order.</DIV>  <DIV>&nbsp;</DIV>  <DIV>3.</DIV>  <DIV>In the same file <CODE>string_stuff.py</CODE>, write a function called <CODE>concordance</CODE>
 that takes an open file as a parameter and returns a dictionary where the keys are the strings from the file and each value is a list of line numbers of the lines in which the key appeared, sorted in increasing order. Start counting at 0. Each line number should appear at most once in a list, even if a word appears twice on a line. You may assume that the input consists only of alphabetic letters (<CODE>a-z</CODE>, <CODE>A-Z</CODE>) and whitespace. </DIV>  <DIV>&nbsp;</DIV>  <DIV>&nbsp;</DIV>  <DIV>Id really appreciate if you could help me on these small question. I am tryin to learn to program in python.</DIV>  <DIV>&nbsp;</DIV>  <DIV>Thanks,</DIV>  <DIV>Natasha</DIV><p>
                <hr size=1>Brings words and photos together (easily) with<br> 
<a href="http://us.rd.yahoo.com/mail_us/taglines/PMDEF3/*http://photomail.mail.yahoo.com">PhotoMail </a> - it's free and works with Yahoo! Mail.