[Tutor] first call - newcomer

Steve Willoughby steve at alchemy.com
Tue Oct 7 17:53:41 CEST 2008


On Tue, Oct 07, 2008 at 04:23:50AM -0400, Pierre Dagenais wrote:
> Anthony Smith wrote:
> >1.  A brief (but complete) description regarding the use of script 
> >editor (I will be using

Place the files wherever you like, just use a .py extension on
the filenames.  Use any text editor you like which saves plain
ASCII files (notepad, IDLE, vi, emacs, etc).  IDLE comes with
Python and may be useful for new programmers especially.

> >2.  I have been unable to locate the gizmo in the literature to get 
> >ascii codes
> >    in python.  In the old days, it was a list of 256 (or so) 
> >characters that     represented all keyboard symbols (A equalled 36; B 
> >equalled 37; et cetera).

36?  Out of curiosity, what system were you using?  It can't have
been ASCII or EBCDIC.

> >   To assign a value, you used "Let A$ = ASC (36)" where A$ was a 
> >variable
> >    and 36 was the ASCII value for 'A'.  I believe the reverse of this 
> >process
> >    was PRINT VAL(A$) or something.  I want to play with a program 
> >that will

In Python:
	a = chr(36)
	print ord(a)

-- 
Steve Willoughby    |  Using billion-dollar satellites
steve at alchemy.com   |  to hunt for Tupperware.


More information about the Tutor mailing list