How to get character position in alphabet in Python 3.4?
<p>I need to know the alphabet position of the n-th character in a text and I read the <a href="https://stackoverflow.com/a/5927160/4438904">answer</a> of <a href="https://stackoverflow.com/questions/5927149/get-character-position-in-alphabet">this question</a> but it not works with my Python 3.4</p>

<hr>

<p><strong>My program</strong></p>

<pre><code># -*- coding: utf-8 -*-
"""
Created on Fri Apr 22 12:24:15 2016

@author: Asus
"""

import string

message='bonjour'
string.lowercase.index('message[2]')
</code></pre>

<p>It not works with ascii_lowercase instead of lowercase too.</p>

<hr>

<p><strong>The Error message</strong></p>

<blockquote>
  <p>runfile('C:/Users/Asus/Desktop/Perso/WinPython-64bit-3.4.3.4/python-3.4.3.amd64/Scripts/ESSAI.py',
  wdir='C:/Users/Asus/Desktop/Perso/WinPython-64bit-3.4.3.4/python-3.4.3.amd64/Scripts')
  Traceback (most recent call last):</p>
  
  <p>File "", line 1, in 
      runfile('C:/Users/Asus/Desktop/Perso/WinPython-64bit-3.4.3.4/python-3.4.3.amd64/Scripts/ESSAI.py',
  wdir='C:/Users/Asus/Desktop/Perso/WinPython-64bit-3.4.3.4/python-3.4.3.amd64/Scripts')</p>
  
  <p>File
  "C:\Users\Asus\Desktop\Perso\WinPython-64bit-3.4.3.4\python-3.4.3.amd64\lib\site-packages\spyderlib\widgets\externalshell\sitecustomize.py",
  line 685, in runfile
      execfile(filename, namespace)</p>
  
  <p>File
  "C:\Users\Asus\Desktop\Perso\WinPython-64bit-3.4.3.4\python-3.4.3.amd64\lib\site-packages\spyderlib\widgets\externalshell\sitecustomize.py",
  line 85, in execfile
      exec(compile(open(filename, 'rb').read(), filename, 'exec'), namespace)</p>
  
  <p>File
  "C:/Users/Asus/Desktop/Perso/WinPython-64bit-3.4.3.4/python-3.4.3.amd64/Scripts/ESSAI.py",
  line 11, in 
      string.lowercase.index('message<a href="https://stackoverflow.com/questions/5927149/get-character-position-in-alphabet">2</a>')</p>
  
  <p><strong>AttributeError: 'module' object has no attribute 'lowercase'</strong></p>
</blockquote>