Hi All,
Please someone help on the below request.
I am learning python and trying to connect my satellite decoder using
telnet. When I tried to connect my device through telnet python script, I
could successfully connected to the device.
But i want to capture/save as well as read the output and
So I am new to this, and I have a book call /Hello Python by Anthony Briggs/.
It is a good book but it is using Python 2 I think and I can't get my code
to work. I get an "AttributeError: 'range' object has no attribute
'remove'". I have tried to look it up on the web with no luck. Can someone
help
On 26/02/15 04:30, kcberry wrote:
So I am new to this, and I have a book call /Hello Python by Anthony Briggs/.
It is a good book but it is using Python 2 I think and I can't get my code
to work. I get an "AttributeError: 'range' object has no attribute
'remove'". I have tried to look it up on th
Op 26-02-15 om 09:55 schreef Alan Gauld:
On 26/02/15 04:30, kcberry wrote:
So I am new to this, and I have a book call /Hello Python by Anthony
Briggs/.
It is a good book but it is using Python 2 I think and I can't get my
code
to work. I get an "AttributeError: 'range' object has no attribute
On Thu, Feb 26, 2015 at 08:55:55AM +, Alan Gauld wrote:
> However remove() may not do what you think. It removes the
> value zero from your list not the first element. I this case they are
> the same but in other cases they might not be. You may want to use del()
> instead
>
> del(unvisited
On Thu, Feb 26, 2015 at 12:24:17PM +0530, kailash ganesh wrote:
> Hi All,
>
> Please someone help on the below request.
>
> I am learning python and trying to connect my satellite decoder using
> telnet. When I tried to connect my device through telnet python script, I
> could successfully connec
Assuming I have the following list and code how do I best be able
rearrange the list as stated below:
list = [0, 0, 21, 35, 19, 42]
Using print list[2:6] resulted in the following:
221
335
419
542
I would like to rearrange the list as follow:
542
335
221
419
Ken G. wrote:
> Assuming I have the following list and code how do I best be able
> rearrange the list as stated below:
>
> list = [0, 0, 21, 35, 19, 42]
>
> Using print list[2:6] resulted in the following:
>
> 221
> 335
> 419
> 542
>
> I would like to rearrange the list as fol
On Thu, Feb 26, 2015 at 07:13:57AM -0500, Ken G. wrote:
> Assuming I have the following list and code how do I best be able
> rearrange the list as stated below:
>
> list = [0, 0, 21, 35, 19, 42]
Be aware that you have "shadowed" the built-in list function, which
could cause trouble for you.
p
Ah wait, the penny drops! Now I understand what you mean!
On Thu, Feb 26, 2015 at 07:13:57AM -0500, Ken G. wrote:
> In another words, I would desire to show that:
>
> 5 appears 42 times
> 3 appears 35 times
> 2 appears 21 times
> 4 appears 19 times
>
> but then I lose my original index of the
Peter Otten wrote:
> Ken G. wrote:
>
>> Assuming I have the following list and code how do I best be able
>> rearrange the list as stated below:
>>
>> list = [0, 0, 21, 35, 19, 42]
>>
>> Using print list[2:6] resulted in the following:
>>
>> 221
>> 335
>> 419
>> 542
>>
>> I wo
Steven D'Aprano wrote:
> Ah wait, the penny drops! Now I understand what you mean!
Glad I'm not the only one ;)
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
I have a qestion about understanding my assignment. I was wonerding if it
is possible for someone to expalin. it
this is whar it asks of
This assignment question will give you practice with recursive
backtracking. You are to create a class called AnagramSolver that uses a
word list to find all comb
Hello, everybody: I came accross a question a few days
ago. I wrote a Python script to copy something to a table in a word
file. For some reaons, there are some blank rows. And I want to remove
the blank rows. I tried many ways, but all didn't work. Below is the
code.desfile='C:\\Daten\
On 26/02/15 11:06, Timo wrote:
If you need to use it as a list you need to explicitly
convert it using list():
unvisited_caves = range(0,20)
I think you missed your own solution here, Alan. You probably meant:
unvisited_caves = list(range(0, 20))
Oops! Thanks for picking that up.
--
Alan G
On 26/02/15 11:52, Fatimah Taghdi wrote:
I have a qestion about understanding my assignment. I was wonerding if it
is possible for someone to expalin. it
Your teacher maybe?
As it is you have taken a question which puzzles you,
sent us only a part of it and somehow expect us to understand
it a
On 26/02/15 05:53, shouqiang1...@sina.com wrote:
Hello, everybody: I came accross a question a few days
ago. I wrote a Python script to copy something to a table in a word
file. For some reaons, there are some blank rows. And I want to remove
the blank rows. I tried many ways, but all didn't
I may have mis-stated my intention. I will rewrite
my request for assistance later and resubmit.
Thanks,
Ken
On 02/26/2015 08:04 AM, Peter Otten wrote:
Steven D'Aprano wrote:
Ah wait, the penny drops! Now I understand what you mean!
Glad I'm not the only one ;)
Hi, I am trying to use Gaussian process regression for Near Infrared spectra. I
have reference data(spectra), concentrations of reference data and sample data,
and I am trying to predict concentrations of sample data. Here is my code.
from sklearn.gaussian_process import GaussianProcess gp = Gau
On 26/02/15 18:04, Huijae wrote:
Hi, I am trying to use Gaussian process regression for Near Infrared spectra. I
have reference data(spectra), concentrations of reference data and sample data,
and I am trying to predict concentrations of sample data. Here is my code.
from sklearn.gaussian_proce
On 26/02/2015 16:33, Ken G. wrote:
I may have mis-stated my intention. I will rewrite
my request for assistance later and resubmit.
Thanks,
Ken
When you come back please don't top post, it makes following long
threads difficult if not impossible, thanks.
--
My fellow Pythonistas, ask not
Hello I have been trying to figure out a way to parse the subject line of new
emails in Gmail, the subject line will be commands for another python script. I
know this isn't the most secure way of doing things but it is for a Beagle
Bone, I'm really new to python and don't know of this is even p
On 26/02/2015 20:51, Willie Sims wrote:
Hello I have been trying to figure out a way to parse the subject line of new emails in
Gmail, the subject line will be commands for another python script. I know this isn't the
most secure way of doing things but it is for a Beagle Bone, I'm really new t
On 26/02/15 20:51, Willie Sims wrote:
I know py can parse emails, but I cant figure out how to limit to only
> the subject and only if its in that certain format
and only if its coming from a recognized email address
OK, Show us what you've tried. That makes it easier for us to see what
is
On Fri, Feb 27, 2015 at 03:04:25AM +0900, Huijae wrote:
> Hi, I am trying to use Gaussian process regression for Near Infrared
> spectra. I have reference data(spectra), concentrations of reference
> data and sample data, and I am trying to predict concentrations of
> sample data. Here is my co
Dear tutor,
I'd like to ask for help with an issue I have with python. My MAC is with OS
10-6.8, darwin kernel, 64 bits. For some reason I updated macports and it
automatically updated python to 2.7 with a 32 bits library, and it is giving me
lots of trouble. I can't install any new software tha
26 matches
Mail list logo