A few hints to make it more efficient:
2011/6/10 B G compbiocancerresearc...@gmail.com
1) Create a script that gives me a list of all the filenames in the folder:
I managed to do the following:
path = ...\\Leukemia_Project
Use / in path instead of \\, it will work in all environments, not
I'm stuck on two problems from the Absolute Beginners book. The first is
simple.
I am trying to print all the words in the list in random order without repeats,
but it always shows None for some reason.
#Program prints list of words in random order with no repeats
import random
#List of
Vincent Balmori wrote:
I'm stuck on two problems from the Absolute Beginners book. The first is simple.
I am trying to print all the words in the list in random order without repeats,
but it always shows None for some reason.
#Program prints list of words in random order with no repeats
Rayon wrote:
HI All,
Is there any way that I can use python telnetlib to connect to a telnet
session.
It would be a pretty rubbish telnet library if it didn't let you make
telnet connections.
I don't understand why you are asking this question, since you have
successfully made
2011/6/10 B G compbiocancerresearc...@gmail.com
path = ...\\Leukemia_Project
i = 0
for (files) in os.walk(path):
print(files)
print(\n)
i += 1
Continuing my thoughts:
I ran your loop, and got several tuples, each representing a directory. All
the tuples have the same
Hello,
I just joined this mailing list so that i can boost up my learning of python.I
come from a C background so python looks a little strange to me but it is
easier to learn then any other languages around.Yet,i have not been able to
find any cool books on python for peoples who are already
Python manuals from http://www.python.org/doc/
From: tutor-bounces+steve.flynn=capita.co...@python.org
[mailto:tutor-bounces+steve.flynn=capita.co...@python.org] On Behalf Of
Kaustubh Pratap chand
Sent: Friday, June 10, 2011 1:41 PM
To: tutor@python.org
Dive into Python: http://diveintopython.org/ is what you're looking for.
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
3) Open the .txt file in Excel, remove the few lines I don't need (ie
single quotes, etc)
Regarding Excel, you can write your output directly to an Excel file from
python using the Python-Excel module. Just install all three packages. I use
them all the time.
Here is something that I wrote
You can also try Learning
Pythonhttp://www.google.com/products/catalog?hl=enq=learning+pythonbiw=1280bih=923um=1ie=UTF-8tbm=shopcid=6497107289960623578sa=Xei=LyHyTYydAs_NrQffnZH6Bwved=0CEcQ8wIwAw
On Fri, Jun 10, 2011 at 6:11 PM, Kaustubh Pratap chand
warr...@programmer.net wrote:
Hello,
I
- Original Message -
From: Kaustubh Pratap chand
To: tutor@python.org
Sent: Friday, June 10, 2011 5:41 AM
Subject: [Tutor] Excited about python
Hello,
I just joined this mailing list so that i can boost up my learning of
python.I come from a C background so python
On Jun 10, 2011, at 15:53, Ashwini Oruganti wrote:
You can also try Learning Python
I also came from a C/C++ background, but I found the standard tutorial
sufficient.
http://docs.python.org/tutorial/
Greetings,
On Fri, Jun 10, 2011 at 6:11 PM, Kaustubh Pratap chand
Thanks I liked the tutorial very much.
- Original Message -
From: Patty
Sent: 06/10/11 10:21 AM
To: Kaustubh Pratap chand, tutor@python.org
Subject: Re: [Tutor] Excited about python
- Original Message -
*From:* warr...@programmer.net
*To:* tutor@python.org
*Sent:* Friday,
Hi Stefan,
Thanks for the code review :) Only just noticed this.
On Wed, May 25, 2011 at 3:10 PM, Stefan Behnel stefan...@behnel.de wrote:
Sithembewena Lloyd Dube, 25.05.2011 14:40:
Thanks for all your suggestions. I read up on gzip and urllib and also
learned in the process that I could
a byte of python http://www.swaroopch.com/notes/Python from Swaroop CH.
On Fri, Jun 10, 2011 at 8:08 PM, Kaustubh Pratap chand
warr...@programmer.net wrote:
Thanks I liked the tutorial very much.
- Original Message -
From: Patty
Sent: 06/10/11 10:21 AM
To: Kaustubh
Rayon evosw...@hotmail.com wrote
Is there any way that I can use python telnetlib to connect to a
telnet
session.
Send commands and get back data without closing the connection.
Yes, thats what it's for.
I need the response to be faster and the login process is taking up
too much
time.
For a handy reference, you can't beat Python Essential Reference by David
Beazley (along with the online documentation, of course!). I think this book
is obligatory if you are going to be working with Python a lot. I own all
four editions :)
But you wanted something more in depth with
For a handy reference, you can't beat Python Essential Reference by David
Beazley (along with the online documentation, of course!). I think this
book
is obligatory if you are going to be working with Python a lot. I own
all
four editions :)
But you wanted something more in depth with
2011. június 10. 15:51 James Reynolds írta, eire1...@gmail.com:
Regarding Excel, you can write your output directly to an Excel file from
python using the Python-Excel module. Just install all three packages. I use
them all the time.
Do they work with Py3K?
Dnia 10-06-2011 o 12:25:34 Steven D'Aprano st...@pearwood.info
napisał(a):
Vincent Balmori wrote:
I'm stuck on two problems from the Absolute Beginners book. The first
is simple. I am trying to print all the words in the list in random
order without repeats, but it always shows None for
Honestly no idea.
At work I use 2.6 / 2.7. At home it's 3.2 / 2.7.
I've never actually tried doing this at home, so I don't know.
They have a mail list though, I would post there to find out.
2011/6/10 Válas Péter suli...@postafiok.hu
2011. június 10. 15:51 James Reynolds írta,
On 06/10/2011 03:12 PM, Piotr Kamiński wrote:
Could you please refrain from presenting your *religious* convictions
in this list: the notions you believe in as well as the ones that you
believe are false?
This is a *technical* list, as I understand it, solely dedicated to
the technical side
Sorry, jumping in on this thread a couple days late...
Steven's suggestion is how I figured out a similar problem recently. If you're
executing the code through a windows command line, you might be getting the
carriage-return character returned to the program (this behavior doesn't happen
in
I just joined the list a little bit ago, and I must say while learning python
it has proved to be a resource second to none. I myself am not from a
traditional computer science background, more or less financial/economics,
discrete mathematics. I have had courses on MySQL, Visual Basic,
How i can print the string in raw...as it is
s=hello world\n
print s
Output:
helloworld
But i want it to be hello world\n
I know it can be done by adding a 'r' prefix but is there any other way
because the string will be taken in during input!
Any help appreciated :D
Great place this is.i am also new and i have started to love this place as
it can help me in learning python fast
- Original Message -
From: Larry Flynton
Sent: 06/10/11 04:44 PM
To: tutor@python.org
Subject: [Tutor] Great List!!!mtu...@python.org
I just joined the list a little bit
print(repr(s))
_
How i can print the string in raw...as it is
s=hello world\n
print s
Output:
helloworld
But i want it to be hello world\n
I know it can be done by adding a 'r' prefix but is there any other way because
the string will be taken in during
Dnia 10-06-2011 o 22:00:46 Corey Richardson kb1...@aim.com napisał(a):
On 06/10/2011 03:12 PM, Piotr Kamiński wrote:
Could you please refrain from presenting your *religious* convictions
in this list: the notions you believe in as well as the ones that you
believe are false?
This is a
Piotr Kamiński wrote:
Could you please refrain from presenting your *religious* convictions in
this list: the notions you believe in as well as the ones that you believe
are false?
This is a *technical* list, as I understand it, solely dedicated to the
technical side of teaching the *Python*
Vincent, you should also try to avoid naming your lists a 'list'. There's a
couple dozen words in Python that are reserved 'for system use':
import keyword
print(keyword.kwlist)
['False', 'None', 'True', 'and', 'as', 'assert', 'break', 'class', 'continue',
'def', 'del', 'elif', 'else',
30 matches
Mail list logo