[Tutor] first call - newcomer
Pierre Dagenais
pierre.dagenais at ncf.ca
Tue Oct 7 10:23:50 CEST 2008
Anthony Smith wrote:
> This is my first post - I will be brief...
>
> One: I have programmed before - but it has been DECADES...so just a
> few simple queries:
>
> 1. A brief (but complete) description regarding the use of script
> editor (I will be using
> command prompt in Windows), as:
>
> a. details about loading and saving programs (not in that
> order) and little
> specs about pathnames or other requirements (I will
> probably store all
> my little goodies in one folder or space).
>
>
Hi,
You save programs by writing them in a file with a .py extension. Ex.:
myProgram.py
Then there are different ways of loading a program, from the dos command
line you can do: C:\myProgram.py, that one I couldn't find in the
litterature, I had to ask, thank you Alan.
> That should get me going ... a book and manual by my side should
> suffice for
> the rest - - - except for one thing:
>
> 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).
> 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
> assign a number to a word (using a simple algorhythm that will give a
> specific number to every word). Other stuff is pretty easy to
> find with
> the book and on-line literature. I will need to get an ascii code
> out of
> a string (whose content is not known to the programmer, as
> raw_input).
> Then to assign, I will need the actual list with assigned numbers.
>
> You will be giving me probably the only boost I will need! I will be
> available later on,
> if I want to take part in the ask/answer system here.
>
>
> Thanks a lot,
>
> Anthony
>
> 8:27 pm PST October 4th, 2008
>
>
> _________________________________________________________________
> Get more out of the Web. Learn 10 hidden secrets of Windows Live.
> http://windowslive.com/connect/post/jamiethomson.spaces.live.com-Blog-cns!550F681DAD532637!5295.entry?ocid=TXT_TAGLM_WL_domore_092008
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Tutor maillist - Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor
>
> ------------------------------------------------------------------------
>
>
> No virus found in this incoming message.
> Checked by AVG - http://www.avg.com Version: 8.0.173 / Virus Database:
> 270.7.6/1710 - Release Date: 06/10/2008 9:23 AM
>
>
More information about the Tutor
mailing list