How do I access integers within an element of a list? : <p>Hi I am new to python and trying to do couple of small tasks in data manipulations. Please note this is not homework, I am aware of this forum. I just do not know how to access a digit within an element hence I do not have any code to start with:</p>

<p>I have a list</p>

<pre><code>numbers = [865, 1169, 1208, 1243, 329]
</code></pre>

<p>-How do I write a program that displays the values in the list numbers in descending order sorted by their last digit</p>

<p>Output I desire:</p>

<pre><code>Sorted by last digit:
[1169, 1208, 865, 1243, 290]
</code></pre>

<p>-How can I display the values in the list numbers in descending
order sorted by the sum of their digits that are odd numbers</p>

<p>Output I desire:</p>

<pre><code>Sorted by sum of odd digits:
[1169, 290, 865, 1243, 1208]
</code></pre>
