I'm sorry; I somehow lost a newline in copypasting. At about line #105, a newline is needed after "#return For loop"
(this has been fixed on the HTML version that was linked before.) Adam Gomaa wrote: > 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... _______________________________________________ Tutor maillist - [email protected] http://mail.python.org/mailman/listinfo/tutor
