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
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
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):
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
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
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
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
"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
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.
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
10 matches
Mail list logo