On 01/-10/-28163 02:59 PM, Jim Byrnes wrote:
I'm trying to teach myself OOP in python (again). The following code
from Dawson's book runs fine, unaltered [1].
class Critter(object):
""" A virtual pet """
def __init__(self, name):
print "A new critter is born"
self.name = name
def get_name(self)
"nookasree ponamala" wrote
I've 30 variables in a text file
I've no idea what a variable in a text file looks like or means.
variables only make sense inside a program context, in
a file the only thing that exists is data. You may have 30 values?
and I want to read this text file and crea
Jim Byrnes wrote:
I'm trying to teach myself OOP in python (again). The following code
from Dawson's book runs fine, unaltered [1].
What's Dawson's book?
class Critter(object):
""" A virtual pet """
def __init__(self, name):
print "A new critter is born"
self.name = n
nookasree ponamala wrote:
Hi
I've 30 variables in a text file and I want to read this text file and create
10 clusters based on 18 variables.
How do you get variables in a text file? Normally text files contain text.
What is a cluster?
How would you create 10 clusters based on 18 variable
Hi
I've 30 variables in a text file and I want to read this text file and create
10 clusters based on 18 variables.
I want to read an other text file and find the closest match using these
clusters
Could you pls. help me with this.
Thanks,
Sree.
I do not think you can override a property.
Ramit
Ramit Prasad | JPMorgan Chase Investment Bank | Currencies Technology
712 Main Street | Houston, TX 77002
work phone: 713 - 216 - 5423
-Original Message-
From: tutor-bounces+ramit.prasad=jpmchase@python.org
[mailto:tutor-bounces+r
I'm trying to teach myself OOP in python (again). The following code
from Dawson's book runs fine, unaltered [1].
class Critter(object):
""" A virtual pet """
def __init__(self, name):
print "A new critter is born"
self.name = name
Oh, belay my last, I misread the question. My apologies.
On Wed, Apr 13, 2011 at 1:04 PM, James Reynolds wrote:
> I double clicked it from my desktop and it opens just fine (though I didn't
> attempt to run it, because I have 2.6 on my work machine and I'm sure that
> will cause it to fail).
>
>
I double clicked it from my desktop and it opens just fine (though I didn't
attempt to run it, because I have 2.6 on my work machine and I'm sure that
will cause it to fail).
Have you added python to Path environment variables in windows?
On Wed, Apr 13, 2011 at 11:14 AM, Gary Beynon wrote:
> -
"Gary Beynon" wrote
I do have ArcGIS (Python 2.6) & Python 2.5 installed.
Are these causing a problem?
Yes, in Python v2 input will return the numeric version
of the number - ie it converts from the string.
In Python v3 - which is what your program expects - input
always returns a string
10 matches
Mail list logo