Re: [Tutor] BMI Question

2012-09-24 Thread Stephen Haywood
On Sep 24, 2012, at 3:16 PM, Aija Thompson wrote: Hi! So I've been working on this question for hours! And Python keeps giving me an error saying that my syntax for BMI is wrong. I really can't understand why. So this is what I have so far: w = raw_input('Please give your weight in lbs: ') h

Re: [Tutor] I don't know why this program doesn't run

2012-09-21 Thread Stephen Haywood
What doesn't work? What error message do you get? What have you done to fix the errors? What version of Python are you using? Stephen Haywood Information Security Consultant W: www.averagesecurityguy.info T: @averagesecguy On Sep 21, 2012, at 7:35 PM, Gina wrote: > I don't

Re: [Tutor] How can I convert a variable name to a string?

2012-09-21 Thread Stephen Haywood
On Sep 21, 2012, at 6:14 AM, Dae James wrote: How can I convert a variable name to a string ? For example: testVariable = 1000; How can I get the string "testVariable" ? Thank you~ Use a dictionary. vars['testVariable'] = 1000 for key in vars: print key print vars[key]

Re: [Tutor] reducing a list evenly when deleting elements by index

2012-09-17 Thread Stephen Haywood
p://en.wikipedia.org/wiki/Ramer%E2%80%93Douglas%E2%80%93Peucker_algorithm > > > -- Stephen Haywood Information Security Consultant CISSP, GPEN, OSCP T: @averagesecguy W: averagesecurityguy.info ___ Tutor maillist - Tutor@python.org To unsub

Re: [Tutor] (no subject)

2012-09-14 Thread Stephen Haywood
http://learnpythonthehardway.org/book/ http://docs.python.org/tutorial/ http://www.readwriteweb.com/hack/2011/03/python-is-an-increasingly-popu.php That should keep you busy for a while. -- Stephen Haywood Information Security Consultant CISSP, GPEN, OSCP T: @averagesecguy W