That did it. Thanks, Max.
On Wednesday, December 15, 2004, at 09:28 PM, Max Noel wrote:
On Dec 16, 2004, at 04:20, Max Noel wrote:
def glass_type(glasstype):
if glasstype == 'Red':
myglass = RedGlassCost()
elif glasstype == 'Blue':
myglass = BlueGla
# --superclass--
class FrameCost:
def __init__(self):
self.width = int(0)
self.length = int(0)
# Calculate cost per square foot
def Cost_per_sqft(self, cost):
return (((self.width) * (self.length) / 144.00) * (cost))
# Calculate cost per linear foot
def Cost_per_ft(self, cost):
r
Hi everybody,
Prior to this chunk of code 'glass' has been chosen from a list of
colors via user input, and I now want to have that choice connect to
one of several possible classes:
def glass_type(glasstype):
if glasstype == 'Red':
myglass = RedGlassCost()
elif g
Thanks. That was pretty basic...
On Tuesday, December 14, 2004, at 09:18 PM, Loptr Chaote wrote:
On Tue, 14 Dec 2004 21:13:00 -0600, Marc Gartler
<[EMAIL PROTECTED]> wrote:
I am trying to have a user select from amongst a list of items, and
then make use of that choice later on as both a
Better still. Thanks Brian.
On Tuesday, December 14, 2004, at 09:44 PM, Brian van den Broek wrote:
Marc Gartler said unto the world upon 2004-12-14 22:13:
I am trying to have a user select from amongst a list of items, and
then make use of that choice later on as both a string (e.g. "you
I am trying to have a user select from amongst a list of items, and
then make use of that choice later on as both a string (e.g. "you chose
_"). My function currently allows for a numerical choice, but I am
not sure how to return it as the item (e.g. apple) rather than the
integer correspo
Thanks all, that was very helpful!
On Tuesday, December 14, 2004, at 06:39 PM, Brian van den Broek wrote:
Marc Gartler said unto the world upon 2004-12-14 18:12:
Hi all,
I am fairly new to both Python & programming, and am attempting to
create a function that will test whether some user inpu
Hi all,
I am fairly new to both Python & programming, and am attempting to
create a function that will test whether some user input is an integer
between 10 and 89, but the check isn't happening...
def check_range(myrange):
if range(myrange) != range(10,89):
return "False