bWater.clicked.connect( water_clicked ) AttributeError: 'int
use a paste site like http://bpaste.net/+python to show us the code.
i am no expert @ programming myself but that error is telling you you
used an int and tried to access an int method called connect somewhere
in your code. ints do
On 12/05/2013 22:44, Matthew Ngaha wrote:
bWater.clicked.connect( water_clicked ) AttributeError: 'int
use a paste site like http://bpaste.net/+python to show us the code.
No, please put the code inline. If the original is too long cut it down
as requested here http://www.sscce.org/
--
On 05/12/2013 03:40 PM, Alex Norton wrote:
im new to python and im in the middle of making a RPS game for a college
unit.
You sent this message 20 minutes after posting a similar one, with a
DIFFERENT title, on python-list. You really ought to pick a target and
pull the trigger once. Only
On 15/04/2013 09:54, Jabesa Daba wrote:
is it possible to reorder a sentence in the form of SVO (Subject Verb
Object) into the form of SOV (Subject Object Verb) by using a python
program? if so, how?
regards,
Yes. By writing code.
You could have answered your own question by typing
On 15/04/13 09:54, Jabesa Daba wrote:
is it possible to reorder a sentence in the form of SVO (Subject Verb
Object) into the form of SOV (Subject Object Verb) by using a python
program? if so, how?
Python is a general purpose programming language so yes, you can program
it to do any
For example, see: http://nltk.org.
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
On 03/20/2013 02:12 AM, Arijit Ukil wrote:
I am new to python. My intention is to read the file digi.txt and
store in separate arrays all the values of each columns. However, the
following program prints only the last value, i.e. 1350696500.0.
Please help to rectify this.
f = open
On 20 March 2013 06:12, Arijit Ukil arijit.u...@tcs.com wrote:
I am new to python. My intention is to read the file digi.txt and store in
separate arrays all the values of each columns. However, the following
program prints only the last value, i.e. 1350696500.0.
Please help to rectify this.
First up please give a sensible subject, say problem parsing csv file.
I'm assuming the crud shown below is due to you posting in html, please
use plain text instead.
On 20/03/2013 06:12, Arijit Ukil wrote:
I am new to python. My intention is to read the file digi.txt and store
in separate
)
--
Message: 1
Date: Thu, 21 Mar 2013 21:39:12 -0400
From: Mitya Sirenef msire...@lightbird.net
To: tutor@python.org
Subject: Re: [Tutor] Help with iterators
Message-ID: 514bb640.5050...@lightbird.net
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
On 03/21/2013 08
Hi Sayan,
On Wed, Mar 27, 2013 at 4:14 PM, Sayan Chatterjee
sayanchatter...@gmail.com wrote:
Dear All,
I am a newbie to Python but have a fair know how of other languages i.e C
etc.
I want to run an astrophysical simulation in Python. All I have to do it to
generate a set of 'plots'
On Wed, Mar 27, 2013 at 4:23 PM, Amit Saha amitsaha...@gmail.com wrote:
Hi Sayan,
On Wed, Mar 27, 2013 at 4:14 PM, Sayan Chatterjee
sayanchatter...@gmail.com wrote:
Dear All,
I am a newbie to Python but have a fair know how of other languages i.e C
etc.
I want to run an astrophysical
Thanks a lot for your prompt reply.
1. Yes. This is exactly what I wanted. Creating a bunch of data sets and
then writing script to plot them using gnuplot, but if something can
produce directly 'plots' it will certainly be helpful.
2. Yes. By stitching them up I meant an animation.Sorry for the
On Wed, Mar 27, 2013 at 4:36 PM, Sayan Chatterjee
sayanchatter...@gmail.com wrote:
Thanks a lot for your prompt reply.
1. Yes. This is exactly what I wanted. Creating a bunch of data sets and
then writing script to plot them using gnuplot, but if something can produce
directly 'plots' it will
Yes, ffmpeg will do if multiple plots can be generated using mathplotlib .
I'll look up the links you provided and get back to you, if I can't figure
it out. :)
On 27 March 2013 12:12, Amit Saha amitsaha...@gmail.com wrote:
On Wed, Mar 27, 2013 at 4:36 PM, Sayan Chatterjee
Hi Amit,
fo = fopen('fname','r+')
fo.write(%d %d,j,counter)
Is giving the following error:
File ZA.py, line 30, in module
fo = open('fname','r+')
IOError: [Errno 2] No such file or directory: 'fname'
Where is the mistake?
Cheers,
Sayan
On 27 March 2013 12:20, Amit Saha
On Wed, Mar 27, 2013 at 11:59 AM, Sayan Chatterjee
sayanchatter...@gmail.com wrote:
Hi Amit,
fo = fopen('fname','r+')
fo.write(%d %d,j,counter)
Is giving the following error:
File ZA.py, line 30, in module
fo = open('fname','r+')
IOError: [Errno 2] No such file or directory:
Hello,
On 27 March 2013 15:59, Sayan Chatterjee sayanchatter...@gmail.com wrote:
Hi Amit,
fo = fopen('fname','r+')
fo.write(%d %d,j,counter)
Is giving the following error:
File ZA.py, line 30, in module
fo = open('fname','r+')
IOError: [Errno 2] No such file or directory:
for t in range(0,200):
fname = 'file_' + str(t)
So it will assign fname values file_0, file_1 so on. Dropping the quotes is
giving me
IOError: [Errno 2] No such file or directory: 'file_0'
Indeed the file is not present. In C we write,if we have to record data in
a file
FILE *fp
fp =
Putting w instead of r+ probably solves the problem. The error is not
showing now.
On 27 March 2013 21:47, Sayan Chatterjee sayanchatter...@gmail.com wrote:
for t in range(0,200):
fname = 'file_' + str(t)
So it will assign fname values file_0, file_1 so on. Dropping the quotes
is giving
You were opening the file for reading, rather than writing. It
therefore was expecting to find a file.
Change
fo = open('fname','r+')
to
fo = open('fname','w')
Bodsda
On 27 March 2013 16:17, Sayan Chatterjee sayanchatter...@gmail.com wrote:
for t in range(0,200):
fname = 'file_' + str(t)
Oh yes, thanks. That worked. :)
On 27 March 2013 21:58, Bod Soutar bod...@googlemail.com wrote:
You were opening the file for reading, rather than writing. It
therefore was expecting to find a file.
Change
fo = open('fname','r+')
to
fo = open('fname','w')
Bodsda
On 27 March 2013
Sayan Chatterjee wrote:
for t in range(0,200):
fname = 'file_' + str(t)
So it will assign fname values file_0, file_1 so on. Dropping the quotes
is giving me
IOError: [Errno 2] No such file or directory: 'file_0'
Indeed the file is not present. In C we write,if we have to record
On 23/03/13 22:35, Edythe Thompson wrote:
Using Python 2.6.5
Mac OS X version 10.6.8
I want to run the PyNomo package that uses python.
This list is for learning core Python so you are probably better off
asking on a PyNomo forum or mailing list. Or at the very least the
MacPython list.
On 03/21/2013 08:39 PM, Matthew Johnson wrote:
Dear list,
I have been trying to understand out how to use iterators and in
particular groupby statements. I am, however, quite lost.
I wish to subset the below list, selecting the observations that have
an ID ('realtime_start') value that is
On 22/03/13 11:39, Matthew Johnson wrote:
Dear list,
I have been trying to understand out how to use iterators and in
particular groupby statements. I am, however, quite lost.
groupby is a very specialist function which is not very intuitive to
use. Sometimes I think that groupby is an
On 22/03/13 12:39, Mitya Sirenef wrote:
You can do it with groupby like so:
from itertools import groupby
from operator import itemgetter
maxDate = 2013-03-21
mmax= list()
obs.sort(key=itemgetter('date'))
for k, group in groupby(obs, key=itemgetter('date')):
group = [dob for dob
On 03/21/2013 10:20 PM, Steven D'Aprano wrote:
On 22/03/13 12:39, Mitya Sirenef wrote:
You can do it with groupby like so:
from itertools import groupby
from operator import itemgetter
maxDate = 2013-03-21
mmax = list()
obs.sort(key=itemgetter('date'))
for k, group in groupby(obs,
On 20/03/2013 11:38, nishitha reddy wrote:
Hi all
i'm working with unicode using python
i have some txt files in telugu i want to split all the lines of that
text files in to words of telugu
and i need to classify all of them using some identifiers.can any one
send solution for that
On 20/03/13 22:38, nishitha reddy wrote:
Hi all
i'm working with unicode using python
i have some txt files in telugu i want to split all the lines of that
text files in to words of telugu
and i need to classify all of them using some identifiers.can any one
send solution for that
Probably
Hello, I am a beginning python student and I am having trouble with a
program I am writing.
Hello, and welcome. Since you don't say if this is an assignment or
not, I will just point you in the right direction, and point out a few
things you might make use of.
def B1():
period = .
You don't
On 03/20/2013 03:57 PM, travis jeanfrancois wrote:
Hello, I am a beginning python student and I am having trouble with a
program I am writing . The problem requires me to use while and that I
create a function that allows the user to a create sentence by inputing a
string and to end the
On Wednesday 2013 March 20 13:39, Robert Sjoblom wrote:
A word of advice: next is a keyword in python
~/Packages/Python/Notable-0.1.5b python
Python 2.5 (r25:51908, May 25 2007, 16:14:04)
[GCC 4.1.2 20061115 (prerelease) (SUSE Linux)] on linux2
Type help, copyright, credits or license for more
On Mar 20, 2013 10:49 p.m., xDog Walker thud...@gmail.com wrote:
On Wednesday 2013 March 20 13:39, Robert Sjoblom wrote:
A word of advice: next is a keyword in python
~/Packages/Python/Notable-0.1.5b python
Python 2.5 (r25:51908, May 25 2007, 16:14:04)
[GCC 4.1.2 20061115 (prerelease)
On 20/03/13 19:57, travis jeanfrancois wrote:
I create a function that allows the user to a create sentence by
inputing a string and to end the sentence with a period meaning
inputing . .The problem is while keeps overwriting the previuos input
'While' does not do any such thing. Your code
Reply inline.
On 21/03/13 12:18 AM, Steven D'Aprano wrote:
On 20/03/13 22:38, nishitha reddy wrote:
Hi all
i'm working with unicode using python
i have some txt files in telugu i want to split all the lines of that
text files in to words of telugu
and i need to classify all of them using
On 16 March 2013 21:14, Abhishek Pratap abhishek@gmail.com wrote:
Hey Guys
I am trying to use itertools.izip_longest to read a large file in
chunks based on the examples I was able to find on the web. However I
am not able to understand the behaviour of the following python code.
On Sat, Mar 16, 2013 at 2:32 PM, Oscar Benjamin
oscar.j.benja...@gmail.com wrote:
On 16 March 2013 21:14, Abhishek Pratap abhishek@gmail.com wrote:
Hey Guys
I am trying to use itertools.izip_longest to read a large file in
chunks based on the examples I was able to find on the web.
Abhishek Pratap wrote:
I am trying to use itertools.izip_longest to read a large file in
chunks based on the examples I was able to find on the web. However I
am not able to understand the behaviour of the following python code.
(contrived form of example)
for x in
On Sat, Mar 16, 2013 at 2:53 PM, Peter Otten __pete...@web.de wrote:
Abhishek Pratap wrote:
I am trying to use itertools.izip_longest to read a large file in
chunks based on the examples I was able to find on the web. However I
am not able to understand the behaviour of the following python
On 13/03/13 15:12, Joshua Wilkerson wrote:
Can you help me with something? This code (it also draws from the
text_game file) says it has a syntax error,
Don't make us guess, post the error message.
It will tell us where.
--
Alan G
Author of the Learn to Program web site
On 13 March 2013 15:12, Joshua Wilkerson joshjwilker...@yahoo.com wrote:
Can you help me with something? This code (it also draws from the text_game
file) says it has a syntax error, but I can't seem to find what it is, I
think the code is having a fit but I'm not sure. I'm appreciative to all
On 14/03/13 02:12, Joshua Wilkerson wrote:
Can you help me with something? This code (it also draws from the text_game
file) says it has a syntax error, but I can't seem to find what it is, I think
the code is having a fit but I'm not sure. I'm appreciative to all hep.
The most valuable
On 02/19/2013 07:36 AM, Ghadir Ghasemi wrote:
Hi guys, Iam halfway through my vending machine program that I started earlier.
I ran into a problem. When the user inserts some money, The money variable is
not stored for until the user buys an item. So what happens is when the users
inserts
On 19/02/13 12:36, Ghadir Ghasemi wrote:
def printMenu():
print (|__|)
print (| 2. Insert 10p |)
print (| 3. Insert 20p |)
print (| 4. Insert 50p |)
print (|__|)
while True:
elif
On 02/11/2013 11:06 AM, Pravya Reddy wrote:
Can you please help me with the code.
#!/usr/bin/env python
inchtocm.py
First, remove that try/except until the code is free of obvious bugs.
It's masking where the error actually occurs. Alternatively, include a
variable there, and print the
On Mon, Feb 11, 2013 at 9:06 AM, Pravya Reddy pravyare...@gmail.com wrote:
Can you please help me with the code.
#!/usr/bin/env python
inchtocm.py
def Inchtocm(inches):
Returns 2.54 * inches
return (2.54 * float(inches_number1))
I don't know if your curriculum talks about
3n2 Solutions wrote:
Hello,
I want to automate the following manual process from DOS promp:
c:/scripts/perlperl fix.pl base.gtx base.txt
Here is my python script:
path=c:/scripts/perl/
subprocess.call(['perl','fix.pl','base.gtx base.txt',path])
I also tried this alternative:
On Tue, Feb 5, 2013 at 6:44 PM, 3n2 Solutions 3n2soluti...@gmail.com wrote:
I want to automate the following manual process from DOS promp:
I agree with Peter's answer. I'd just like to add a generally useless
and pedantic comment about the habit of saying DOS prompt. The cmd
shell is a Win32
On 06/02/13 10:58, eryksun wrote:
and pedantic comment about the habit of saying DOS prompt. The cmd
shell is a Win32 console application, unlike DOS command.com.
Yes, but the problem is that Windows now has so many command prompts
(cscript, cmd, power shell etc) that the Windows prompt
On Wed, Feb 6, 2013 at 12:47 PM, Alan Gauld alan.ga...@btinternet.com wrote:
so the DOS prompt is both traditional and sufficiently specific making it
the most easily understandable of the likely terms.
DOS prompt is a common idiom, but it bears mentioning now and then
that the OS is NT [1],
On 5 February 2013 05:08, eryksun eryk...@gmail.com wrote:
On Mon, Feb 4, 2013 at 7:21 PM, Oscar Benjamin
oscar.j.benja...@gmail.com wrote:
eigenvalues, eigenvectors = np.linalg.eig(C)
First sort by eigenvalue magnitude:
idx = np.argsort(eigenvalues)[::-1]
print idx
[ 0 1
On 05/02/13 23:44, 3n2 Solutions wrote:
I want to automate the following manual process from DOS promp:
c:/scripts/perlperl fix.pl base.gtx base.txt
Use a DOS batch file, that's what they are there for.
If you are not doing any other processing Python is inefficient and
overkill for this
On 04/02/13 06:24, Gayathri S wrote:
Hi All!
If i have data set like this means...
3626,5000,2918,5000,2353,2334,2642,1730,1687,1695,1717,1744,593,502,493,504,449,431,444,444,429,10
...
458,5022,3640,3644,5000,2922,5000,2346,2321,2628,1688,1666,1674,1696,744,590,496.
How to
On 04/02/13 17:24, Gayathri S wrote:
Hi All!
If i have data set like this means...
3626,5000,2918,5000,2353,2334,2642,[...],496.
No need to dump your entire data set on us. Just a few representative
values will do.
How to do PCA on this data? if it is in array how to do
How to do PCA on this data? if it is in array how to do that? and also how
to use princomp() in PCA?
Principal component analysis,
http://en.wikipedia.org/wiki/Principal_component_analysis
may not be built in. Do you know for sure that it is? According to
this blog entry, you can do it
On 4 February 2013 06:24, Gayathri S gayathri.s...@gmail.com wrote:
Hi All!
If i have data set like this means...
3626,5000,2918,5000,2353,2334,2642,1730,1687,1695,1717,1744,593,502,493,504,449,431,444,444,429,10
On Mon, Feb 4, 2013 at 7:21 PM, Oscar Benjamin
oscar.j.benja...@gmail.com wrote:
eigenvalues, eigenvectors = np.linalg.eig(C)
First sort by eigenvalue magnitude:
idx = np.argsort(eigenvalues)[::-1]
print idx
[ 0 1 2 3 8 10 11 12 14 22 20 21 18 19 23 24 17 16 15 13 9 7 5 6
On 02/02/13 01:47, Jack Little wrote:
def simpstart():
global ammo1
global ammo2
global ammo3
global health
global tech_parts
global exp
global radio_parts
ammo1=10
ammo2=0
ammo3=0
health=100
tech_parts=0
exp=0
radio_parts=0
This function is
You get the error because you call path1pt1() before it is defined. Define
your path1pt1() method at the top of your code before simpstart().
Brandon
On Fri, Feb 1, 2013 at 5:47 PM, Jack Little jacklittl...@yahoo.com wrote:
I get this error
Traceback (most recent call last):
File
On 02/01/2013 08:47 PM, Jack Little wrote:
I get this error
Traceback (most recent call last):
File C:\Users\Jack\Desktop\python\g.py, line 56, in module
path1pt1()
NameError: name 'path1pt1' is not defined
With this amount of code:
def simpstart():
global ammo1
global ammo2
On 1/30/2013 1:51 AM, Gayathri S wrote:
I am sorry that you chose to ignore my request to start a new email with
a relevant subject.
Please next time do so.
The easier you make it for us to help you the more likely we will want
to help.
--
Bob Gailer
919-636-4239
Chapel Hill NC
On Mon, Jan 28, 2013 at 10:22 PM, Ghadir Ghasemi
ghasemm...@leedslearning.net wrote:
Hi guys I wanted to make a program called Binary/decimal converter.
That’s easy, int('11', 2) and bin(3) should be enough.
But I want to do it the hard way e.g. not using built in python functions.
Can you
Hi all...!
I don't know how to import our own data sets in python. its
always importing the in built data sets. could you just tell me how to do
that...!
Thanks...!
On Mon, Jan 28, 2013 at 1:50 PM, Steven D'Aprano st...@pearwood.infowrote:
On 28/01/13 18:26, Gayathri S wrote:
On 01/30/2013 01:51 AM, Gayathri S wrote:
Hi All!
I don't know how to read text file in python. If the data
values are stored in a text file format, for example(1,30,60,90,120...200)
means what i would do for reading it in python. could you just explain it.
infile =
A safer approach would be -
with open(filepath, mode as filehandle:
indent//operation with the file.
This way, you do not have to remember to close the file explicitly.
On Wed, Jan 30, 2013 at 12:27 PM, Dave Angel da...@davea.name wrote:
On 01/30/2013 01:51 AM, Gayathri S wrote:
Hi All!
missed a parenthesis, it should look like -
with open(filepath, mode) as filehandle:
indent//operation with the file.
On Wed, Jan 30, 2013 at 12:31 PM, spa...@gmail.com wrote:
A safer approach would be -
with open(filepath, mode as filehandle:
indent//operation with the file.
This way, you
On 28/01/13 18:26, Gayathri S wrote:
Hi all..!
wanna know how to compile python script in python command line,
and is there any need for setting path for python like JAVA? whats the
difference between .py file and .pyc file?
Python is a byte-code compiled language, like Java many
Ghadir,
I did a quick google search for how to convert digital to binary. The
first link was to
http://www.ehow.com/how_5164721_convert-digital-binary.html which gives
a pretty clear example of the process for converting digital to binary.
Of course, you will need to translate this
Hi guys I wanted to make a program called Binary/decimal converter. But I
want to do it the hard way e.g. not using built in python functions. Can you
give me an idea about how I can do that?
Do you have an idea of what kind of things would be useful test cases
for this converter? Thinking
On Mon, Jan 28, 2013 at 4:51 PM, Danny Yoo d...@hashcollision.org wrote:
Hi guys I wanted to make a program called Binary/decimal converter. But
I want to do it the hard way e.g. not using built in python functions. Can
you give me an idea about how I can do that?
See if you can write the
Hi all..!
wanna know how to compile python script in python command line,
and is there any need for setting path for python like JAVA? whats the
difference between .py file and .pyc file?
Thanks...!
On Sat, Jan 19, 2013 at 8:54 AM, bob gailer
You are missing a multiplication sign.
Near the end of your formula.
On Fri, Jan 18, 2013 at 1:56 PM, Carpenter, Steven
steven.carpen...@oakland.k12.mi.us wrote:
To Whom it May Concern,
I’m trying to get this code working. *Here’s my question:*
Consider a triangle with sides of
Following up on Jos Kerc's answer:
On Fri, 2013-01-18 at 07:56 -0500, Carpenter, Steven wrote:
[…]
print(math.acos(((a**2)+(b**2)-(c**2))/(2(a*b
2(a*b) → 2 * (a * b)
TypeError: 'int' object is not callable
Juxtaposition does not imply multiplication in Python as it does in
On Thu, Jan 17, 2013 at 10:11 PM, Gayathri S gayathri.s...@gmail.comwrote:
import numpy as np
import matplotlib.pyplot as plt
import mlpy
np.random.seed(0)
mean,cov,n=[0,0],[[1,1],[1,1.5]],100
x=np.random.multivariate_normal(mean,cov,n)
pca.learn(x)
Traceback (most recent call
On 18/01/13 17:11, Gayathri S wrote:
hi...
I am using principal component analysis for dimensionality
reduction in python. am having this following error...
import numpy as np
import matplotlib.pyplot as plt
import mlpy
np.random.seed(0)
mean,cov,n=[0,0],[[1,1],[1,1.5]],100
On Fri, Jan 18, 2013 at 3:25 AM, Lie Ryan lie.1...@gmail.com wrote:
On 18/01/13 17:11, Gayathri S wrote:
import numpy as np
import matplotlib.pyplot as plt
import mlpy
np.random.seed(0)
mean,cov,n=[0,0],[[1,1],[1,1.5]],100
x=np.random.multivariate_normal(mean,cov,n)
On 1/18/2013 8:03 AM, eryksun wrote:
Yes, it's a mistake in the PCA example from the docs:
http://mlpy.sourceforge.net/docs/3.5/dim_red.html#principal-component-analysis-pca
There seems to be no way to report a bug in that documentation! Or am I
missing something?
--
Bob Gailer
919-636-4239
hi...
I am using principal component analysis for dimensionality
reduction in python. am having this following error...
import numpy as np
import matplotlib.pyplot as plt
import mlpy
np.random.seed(0)
mean,cov,n=[0,0],[[1,1],[1,1.5]],100
x=np.random.multivariate_normal(mean,cov,n)
On Sat, Jan 12, 2013 at 12:28 AM, MDB bashya...@gmail.com wrote:
Hi,
I am a beginner to progrmming and want to learn basic python. I am a
scientist (with less math background) with absolutely no programming
experience. Are there any web based tutorials/videos/books to learn python.
The best
Murail,
Check out Udacity.com and the CS101 course. Great video lectures reinforced
by homework and problems (with answers) that you can do yourself. Also
has a very good forum and active user base to ask questions.
It is a good starting point for a beginner and teaches the basics behind
how to
Hi..
I would like to use Principal component analysis independent
component analysis in python. Wanna know whether it will support this
efficiently or not?
On Wed, Jan 2, 2013 at 4:59 PM, Alan Gauld alan.ga...@btinternet.comwrote:
On 02/01/13 07:20, Gayathri S wrote:
Hi..
I
On 04/01/13 20:17, lei yang wrote:
Hi experts
I have a function will print PASS status
def print_pass(t_elapsed):
Print PASS to stdout with PASS (green) color.
print_stdout(bcolors.PASS + PASS + bcolors.ENDC + (%.2f s) %
t_elapsed)
I want to calculate the pass
On 1/4/2013 4:25 AM, Steven D'Aprano wrote:
On 04/01/13 20:17, lei yang wrote:
Hi experts
I have a function will print PASS status
def print_pass(t_elapsed):
Print PASS to stdout with PASS (green) color.
print_stdout(bcolors.PASS + PASS + bcolors.ENDC + (%.2f s)
%
On 02/01/13 07:20, Gayathri S wrote:
Hi..
I am using python 2.7 and scikit-learn for machine learning.
And OS is Windows 7. Wanna know how to import our own data sets in
scikit-learn?
Hi,
This list is for learning Python and its standard library.
Your question looks to be
On 02/01/13 07:20, Gayathri S wrote:
Hi..
I am using python 2.7 and scikit-learn for machine learning.
And OS is Windows 7. Wanna know how to import our own data sets in
scikit-learn?
Further to my last mail there is a gmane group
gmane.comp.python.scikit-learn
I'd try looking
Hi Randy
I am an older newbie teaching myself Python programming.
Me too :)
My problem is I hear no system bell; the enter doesn't respond by quitting
the program;
The problem with the program code the enter key hasn't worked in earlier
programs.
I appreciate any advice I may recieve
On Fri, Dec 28, 2012 at 1:30 PM, Evans Anyokwu onyx...@gmail.com wrote:
I just tried your code and it worked for me. Like Alan and Steven have
pointed out already, sounding the system bell depends on how you are running
the code and your platform.
On my computer I have Putty installed which I
On Thu, Dec 27, 2012 at 12:07 PM, Randy WhiteWolf
randywhitew...@ymail.comwrote:
I am an older newbie teaching myself Python programming. I copied the code
# Emonstrates escape sequences. This exercise is on page 22 of the Phthon
Programming for the Absolute Beginner by Michael Dawson. I have
On 27/12/12 23:07, Randy WhiteWolf wrote:
# Sound the system bell
print \a
That comment is misleading. \a does not necessarily sound the system
bell. Whether it does or not depends on the terminal you are using.
For example, under Linux I am using the Konsole terminal, and I
have four
On 27/12/12 12:07, Randy WhiteWolf wrote:
Phthon Programming for the Absolute Beginner by Michael Dawson. I have
copied the code verbatim below.
# Sound the system bell
print \a
...
raw_input (\n\nPress the enter key to exit.)
My problem is I hear no system bell; the enter doesn't respond by
On Sun, Dec 2, 2012 at 2:37 AM, Jack Little jacklittl...@yahoo.com wrote:
Hi Tutor,
I'm getting this error
Traceback (most recent call last): File C:\Users\Jack\Desktop\python\g.py,
line 45, in module path_1pt1() NameError: name 'path_1pt1' is not defined
With the attached file
Please get
On 02/12/12 12:37, Jack Little wrote:
Hi Tutor,
I'm getting this error
Traceback (most recent call last): File C:\Users\Jack\Desktop\python\g.py,
line 45, inmodule path_1pt1()
NameError: name 'path_1pt1' is not defined
Names need to be defined before they are used. Code needs to be indented
On Wed, Dec 5, 2012 at 2:13 AM, Erik Martinson eman_...@yahoo.com wrote:
File /usr/lib/python2.7/sqlite3/dbapi2.py, line 63, in convert_date
return datetime.date(*map(int, val.split(-)))
ValueError: invalid literal for int() with base 10: '21 01:47:43'
127.0.0.1:59850 - - [04/Dec/2012
On 03/12/12 14:59, rajesh mullings wrote:
Hello, I am trying to write a program which takes two lines of input, one
called a, and one called b, which are both strings, then outputs the
number of times a is a substring of b. If you could give me an
algorithm/pseudo code of what I should do to
On 03/12/2012 03:59, rajesh mullings wrote:
Hello, I am trying to write a program which takes two lines of input, one
called a, and one called b, which are both strings, then outputs the
number of times a is a substring of b. If you could give me an
algorithm/pseudo code of what I should do to
The Python version, is Python 3.
On Sun, Dec 2, 2012 at 10:59 PM, rajesh mullings fantasti...@gmail.comwrote:
Hello, I am trying to write a program which takes two lines of input, one
called a, and one called b, which are both strings, then outputs the
number of times a is a substring of b.
There is an equivalent page in the documentation for Python 3 as well,
regarding strings.
This sounds a lot like a homework problem so you are unlikely to get a lot
of help. You certainly won't get exact code.
What have you tried so far? Where are you getting stuck? We're not here
to write
Traceback (most recent call last):
File Match finder GUI.py, line 87, in ?
app = Application(root)
File \Match finder GUI.py, line 23, in __init__
self.create_widgets()
File Match finder GUI.py, line 61, in create_widgets
self.submit_bttn = Button(self, text = Submit,
It's asking a lot if you want people to read your whole code to try
and spot the errors. Try to run it from the console and paste what the
errors are here.
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
501 - 600 of 1500 matches
Mail list logo