python function code
<p>i need someone to code this baby up for me to compare with mine.
Program Specifications</p>

<blockquote>
  <ol>
  <li>Prompt user to input a string.</li>
  <li>Define a function named “reverse_str” that will reverse a string. a) Function input parameter: input string. b) Function Return value:
  Reversed string.</li>
  <li>Define a function named “strip_digits” that will remove the numbers from a string and place them into a list. Function input parameter:
  input string. b) Function Return value: List of digits.</li>
  <li>Print the original string.</li>
  <li>Print the reversed string.</li>
  <li>Print the list containing the digits.</li>
  </ol>
</blockquote>

<p>Program Constraints and Suggestions:
Do not use any built in functions that perform the requirements above.
You can create additional functions byond the required functions if desired.</p>

<pre><code>     def rev_str(string):
        revstring =('')
        length=len(string)
        i = length - 1
        while i&gt;=0:
            revstring = revstring + string[i]
            i = i - 1
        return revstring
     string = raw_input("Enter a string-&gt;")
     new_str = rev_str(string)
     print new_str
</code></pre>

<p>Edit:</p>

<pre><code>    def reverse_str(string):
        revstring =('')
        length=len(string)
        i = length - 1
        while i&gt;=0:
            revstring = revstring + string[i]
            i = i - 1
        return revstring
    def strip_digits(s):
        for c in s:
            result = []
            result = result + c
    string = raw_input("Enter a string-&gt;")
    new_str = reverse_str(string)
    print new_str
    numberless_str  = strip_digits(s)
</code></pre>
