Getting the code of a character ?

Bjorn Pettersen bjorn at roguewave.com
Tue Sep 12 23:51:36 CEST 2000


x = ord('x')

-b

Gilles Lenfant wrote:
> 
> Yes, a real newbie question !
> How to get the code number of a character like :
> x = asc("x") in stupid Basic ?
> 
> TIA
> 
> --
> http://www.python.org/mailman/listinfo/python-list




More information about the Python-list mailing list