Python help displaying strings
<pre><code>def main():
    name = input("Enter your name, eg Zelle: ")
    name = name.lower()
    output = []
    for character in name:
        number = ord(character) - 96
        output.append(number)

    print(output)


main()
</code></pre>

<p>This is what I have so far but I need to make this program run each of the letter in the name a display the output like this:</p>

<pre><code>Enter a name (eg, Zelle): Zelle
Letter Z value is 26
Letter e value is 5
Letter l value is 12
Letter l value is 12
Letter e value is 5
The numeric value of the name 'Zelle' is 60
</code></pre>

<p>And honestly Im not to sure how to do that</p>

<p>here you go:</p>

<pre><code>def main():
    name = input("Enter your name, eg Zelle: ")
    name = name.lower()
    output = []
    name_value = 0
    for character in name:
        number = ord(character) - 96
        output.append((character,number))
        print("Letter {} value is {}".format(character, number))
        name_value += number
    print("The numeric value of the name: {} is {}".format(name, name_value))

main()
</code></pre>

<p>edited :)</p>

python