Re: Considering taking a hammer to the computer...

2013-01-01 Thread Dave Angel
On 01/01/2013 05:01 PM, Chris Angelico wrote: > On Wed, Jan 2, 2013 at 7:14 AM, wrote: >> floor_number = 0 >> for i in range(number_of_floors): >> floor_number = floor_number + 1 > Matt's already given you the part you need (and it seems to have > worked for you, yay!). Side point: Are you aw

Re: Considering taking a hammer to the computer...

2013-01-01 Thread Dave Angel
On 01/01/2013 03:14 PM, worldsbiggestsabres...@gmail.com wrote: > OK, thank you all for your help yesterday! > > Here's where we are today (using python 3.3.0) > > He has everything running well except for the final calculations - he needs > to be able to total the number of rooms in the hotel, as

Re: Considering taking a hammer to the computer...

2013-01-01 Thread MRAB
On 2012-12-31 23:42, worldsbiggestsabres...@gmail.com wrote: Hey :) I'm trying to help my son with an assignment and spending hours making an inch of progress. I know nothing about programming and I'm trying to learn, on my own, at a rate faster than possible. I would love a little help! My

Re: Considering taking a hammer to the computer...

2013-01-01 Thread Chris Angelico
On Wed, Jan 2, 2013 at 7:14 AM, wrote: > floor_number = 0 > for i in range(number_of_floors): > floor_number = floor_number + 1 Matt's already given you the part you need (and it seems to have worked for you, yay!). Side point: Are you aware that i and floor_number are always going to have t

Re: Considering taking a hammer to the computer...

2013-01-01 Thread worldsbiggestsabresfan
That's it!!! Thank you, Matt!! project done! :) Thank you all, very much. Happy New Year! -- http://mail.python.org/mailman/listinfo/python-list

Re: Considering taking a hammer to the computer...

2013-01-01 Thread Matt Jones
rooms_on_floor is being set by the manual input for each floor iterated over in your for loop. My guess is your total_rooms value equals the rooms from the last floor you processed. Same goes for the occupied_rooms. You'll want a separate variable to increment after each occupied_rooms or rooms_

Re: Considering taking a hammer to the computer...

2013-01-01 Thread worldsbiggestsabresfan
OK, thank you all for your help yesterday! Here's where we are today (using python 3.3.0) He has everything running well except for the final calculations - he needs to be able to total the number of rooms in the hotel, as well as the number of occupied rooms. We have tried several different t

Re: Considering taking a hammer to the computer...

2012-12-31 Thread Tim Chase
On 12/31/12 19:30, worldsbiggestsabres...@gmail.com wrote: Here is what I've learned: [snip] 4) It's New Year's Eve and I'm trying to learn Python...? Can't think of a much better way to spend New Year's Eve, unless you're learning Python while also watching fireworks. :-) -tkc -- http

Re: Considering taking a hammer to the computer...

2012-12-31 Thread Modulok
> I'm trying to help my son with an assignment and spending hours making an > inch of progress. I know nothing about programming and I'm trying to learn, > on my own, at a rate faster than possible. I would love a little help! > > My son is taking an introductory course and his assignment is to us

Re: Considering taking a hammer to the computer...

2012-12-31 Thread Mitya Sirenef
On 12/31/2012 08:30 PM, worldsbiggestsabres...@gmail.com wrote: Here is what I've learned: 1) There's a bunch of extremely helpful and wonderful people here. 2) There's a bunch of very intelligent people here. 3) I still don't have any idea what I'm doing. 4) It's New Year's Eve and I'm tryin

Re: Considering taking a hammer to the computer...

2012-12-31 Thread worldsbiggestsabresfan
Here is what I've learned: 1) There's a bunch of extremely helpful and wonderful people here. 2) There's a bunch of very intelligent people here. 3) I still don't have any idea what I'm doing. 4) It's New Year's Eve and I'm trying to learn Python...? I'm going to read all of this over and ov

Re: Considering taking a hammer to the computer...

2012-12-31 Thread Vlastimil Brom
2013/1/1 : > Hey :) > > I'm trying to help my son with an assignment and spending hours making an > inch of progress. I know nothing about programming and I'm trying to learn, > on my own, at a rate faster than possible. I would love a little help! > > My son is taking an introductory course an

Re: Considering taking a hammer to the computer...

2012-12-31 Thread Mitya Sirenef
On 12/31/2012 07:29 PM, Mitya Sirenef wrote: Hi! First I want to note that this task would be easier and better to do with a break statement, so it's quite unfortunate that the teacher did not cover the right tools (and very basic ones, in fact) and yet given this task. Another question: are y

Re: Considering taking a hammer to the computer...

2012-12-31 Thread Mitya Sirenef
On 12/31/2012 06:42 PM, worldsbiggestsabres...@gmail.com wrote: Hey :) > > I'm trying to help my son with an assignment and spending hours making an inch of progress. I know nothing about programming and I'm trying to learn, on my own, at a rate faster than possible. I would love a little hel

Re: Considering taking a hammer to the computer...

2012-12-31 Thread Chris Angelico
On Tue, Jan 1, 2013 at 10:42 AM, wrote: > Hey :) Oh, and another tip. Threatening violence to your computer is unlikely to make it change its ways, and it certainly isn't a helpful subject line :) All the best. ChrisA -- http://mail.python.org/mailman/listinfo/python-list

Re: Considering taking a hammer to the computer...

2012-12-31 Thread Chris Angelico
On Tue, Jan 1, 2013 at 10:42 AM, wrote: > while number_of_floors > 1: > floor_number = floor_number + 1 > print() > print ("For floor #",floor_number) > rooms_on_floor = int(input("How many rooms are on the floor ?: " )) > while rooms_on_floor < 10: > print ("Invalid i

Considering taking a hammer to the computer...

2012-12-31 Thread worldsbiggestsabresfan
Hey :) I'm trying to help my son with an assignment and spending hours making an inch of progress. I know nothing about programming and I'm trying to learn, on my own, at a rate faster than possible. I would love a little help! My son is taking an introductory course and his assignment is to