Re: [Tutor] Television simulation

2011-12-23 Thread Dave Angel
On 12/23/2011 04:43 PM, Dave Angel wrote: On 12/23/2011 04:21 PM, myles broomes wrote: Im trying to create a 'Television simulation' program. Heres the code ive written for it: #television simulation #a program that simulates a television #the user can turn the television on or off, change the

Re: [Tutor] Television simulation

2011-12-23 Thread Dave Angel
On 12/23/2011 04:21 PM, myles broomes wrote: Im trying to create a 'Television simulation' program. Heres the code ive written for it: #television simulation #a program that simulates a television #the user can turn the television on or off, change the volume or change the channel #create the

[Tutor] Television simulation

2011-12-23 Thread myles broomes
Im trying to create a 'Television simulation' program. Heres the code ive written for it: #television simulation #a program that simulates a television #the user can turn the television on or off, change the volume or change the channel #create the television class class Television(object):

Re: [Tutor] Television

2011-06-26 Thread Noah Hall
On Sun, Jun 26, 2011 at 8:28 PM, Vincent Balmori wrote: > > I made in elif statement for the channel changer that works for it, but the > volume systems system boundary does not the way I want it to. If the volume > is 2 and I lower it by a value of 5, it will accept the volume at a negative > num

Re: [Tutor] Television

2011-06-26 Thread Vincent Balmori
I made in elif statement for the channel changer that works for it, but the volume systems system boundary does not the way I want it to. If the volume is 2 and I lower it by a value of 5, it will accept the volume at a negative number thus going past the boundary. The vice-versa for the high boun

Re: [Tutor] Television

2011-06-26 Thread Noah Hall
On Sun, Jun 26, 2011 at 2:02 AM, Vincent Balmori wrote: > > It's working better now. The problem I have left is that I have to set the > channel and volume values in a range (for both I intend for 0-10). I thought > the range() would be the choice, but probably I'm not using it right. I think the

Re: [Tutor] Television

2011-06-25 Thread Vincent Balmori
It's working better now. The problem I have left is that I have to set the channel and volume values in a range (for both I intend for 0-10). I thought the range() would be the choice, but probably I'm not using it right. Another one is for the tv.channel to hold a new value instead of just adding

Re: [Tutor] Television

2011-06-25 Thread Alan Gauld
"Vincent Balmori" wrote Before I can even start correcting my code this error shows up. You will find it much easier to write programns if you do not write out the whole program and then try to debug it! Just write a single method at a time and get that working before trying to debug a whole

Re: [Tutor] Television

2011-06-25 Thread Noah Hall
On Sat, Jun 25, 2011 at 9:18 AM, Vincent Balmori wrote: > > The question for this is to make a program that simulates a TV by creating it > as an object. The user should be able to to enter a channel and or raise a > volume. Make sure that the Channel Number and Volume stay within valid > ranges.

[Tutor] Television

2011-06-25 Thread Vincent Balmori
The question for this is to make a program that simulates a TV by creating it as an object. The user should be able to to enter a channel and or raise a volume. Make sure that the Channel Number and Volume stay within valid ranges. Before I can even start correcting my code this error shows up. I