[Tutor] Evaluate my script?
Adam Gomaa
python-tutor at adamgomaa.com
Tue Oct 24 04:00:36 CEST 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello, -tutor. I wrote this script in chemistry class, which gets the
user's input for various parts of the PV=nRT ideal gas law, then
calculates the missing variable, which you indicate by putting in an 'x'.
I've tried to follow 'best practices' per se, and I'm looking for
feedback on if I've done anything that's a Python or programming no-no.
I've attached the script, and it's online with highlighting here:
http://www.adamgomaa.com/docuwiki/doku.php?id=pvnrt2.py
Incidentally, that's a wiki, so you can edit it there if you like.
Thanks for your time.
Full disclosure: I am taking an Intro. to Programming course in which
we use Python, but this is not my homework- we're actually moving much
more slowly than I would like :/
And, this isn't work for the chemistry class either. I do use this
script in class, but not on graded assignments/tests during which we
can't use computers anyway...
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD4DBQFFPXOrOvYxdjZi+ggRAjl3AJUSlJNb3g9vqIJ9TDht2Ga/e7OQAJ9+jinx
ddN7X9VJghNwtwROhlA78A==
=MP74
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pvnrt2.py
Type: text/x-python
Size: 5303 bytes
Desc: not available
Url : http://mail.python.org/pipermail/tutor/attachments/20061023/93f93d15/attachment-0001.py
More information about the Tutor
mailing list