please think about your first programming class, and then think about how
long it took the prof to teach the concept of array.
yes, it's about a week, if he is really good.
python is a very young language, prefered by professionals of its
simplicity, as such, the number of character of the doc
"elis aeris" <[EMAIL PROTECTED]> wrote
> because its well written document of people who know multiple
> languages, I
> have to as what appears to be the same question over and over
> because
> Ican't read the documents.
The official tutor is designed for experienced programmers.
There are ma
"Kent Johnson" <[EMAIL PROTECTED]> wrote
> You can find out where any module is located using its __file__
> attribute. This works for modules written in C, too.
But not on Windoze. If it's built-in there is no __file__ attribute.
But the print trick tells you if it's builtin and if it's not __f
Greetings,
I have found that this Python Book has been helpful:
http://ibiblio.org/obp/thinkCS/python/english2e.tgz
How to Think Like a Computer Scientist
Learning with Python
by Allen B. Downey, Jeffrey Elkner and Chris Meyers
Printed copies now available from Green Tea Press.
One of the most
Thanks to all the tutors,... your advice has been invaluable todate,.. the
learning continues.
The code below..asks the user to pick one of 3 options,.. once they choose,...
a random result happens based on their choice.
-
import random
hello all sorry to bother I'm working on my first curses program ive
been wanting to learn curses for a while now and now that a have a
lop top with fedora core running in run level 3 ware im trying to
program all the tools i'll use but curses will be my only gui ALAN
has been helping me wi
Hi Darren,
Darren Williams wrote:
> Hi all Smile
>
> I have a Windows hosting account with lunarpages.com and am having a bit
> of trouble with CGI. I have enabled both CGI and Python in the control
> panel and made sure the permissions for all my CGI scripts are set to
> both readable and execu
On Sat, 2007-07-14 at 08:54 -0400, bhaaluu wrote:
> Greetings,
>
> I have found that this Python Book has been helpful:
>
> http://ibiblio.org/obp/thinkCS/python/english2e.tgz
>
> How to Think Like a Computer Scientist
> Learning with Python
>
> by Allen B. Downey, Jeffrey Elkner and Chris Meye
Hi,
> books with maximum outside help, and others can't learn from books
> at all, they need to have their hands held from the first step to
> the
> final destination.
IMO Anyone in that position is never going to be able to program
at any level of competency. Its a simple fact that to program a
"Tony Noyeaux" <[EMAIL PROTECTED]> wrote in
-
import random
print "\t\t\t\tLife Simulator"
print "You have just turned 18 years old. Your life awaits,... choices
to be made.."
print "\na)Army,\nb)Navy,\nc)Airforce"
job=raw_input("What will u
Greetings,
I'm enjoying this discussion.
On 7/14/07, Alan Gauld <[EMAIL PROTECTED]> wrote:
> Hi,
>
> > books with maximum outside help, and others can't learn from books
> > at all, they need to have their hands held from the first step to
> > the
> > final destination.
>
> IMO Anyone in that pos
> > I'm intrigued by that statement. What do you find challenging?
>
> All of it seems complicated at first because I'm not familiar with the
> nuances of the new language. I do not have a CS background.
That's one of the reasons I wrote my tutor. It became obvious to me
that most web tutors
On 13/07/07, encore jane <[EMAIL PROTECTED]> wrote:
> Does anyone know about a good native Excel file reader that is platform
> independent?
I have had success with pyExcelerator:
http://sourceforge.net/projects/pyexcelerator
--
John.
___
Tutor maillis
im writing a quick quote reader that spits out a random quote from a
show but cant get it to pick randomly
i tried
a=randrange(820)+1
text.readline(a)
and i would prefer not having to bring evryline into the program then
picking like
for line in text.readlines():
lines.append(text)
.
max baseman wrote:
> im writing a quick quote reader that spits out a random quote from a
> show but cant get it to pick randomly
> i tried
> a=randrange(820)+1
> text.readline(a)
>
> and i would prefer not having to bring evryline into the program then
> picking like
>
> for line in text.readl
On 15/07/07, max baseman <[EMAIL PROTECTED]> wrote:
> im writing a quick quote reader that spits out a random quote from a
> show but cant get it to pick randomly
> i tried
> a=randrange(820)+1
> text.readline(a)
>
> and i would prefer not having to bring evryline into the program then
> picking li
"max baseman" <[EMAIL PROTECTED]> wrote
> im writing a quick quote reader that spits out a random quote from a
> show but cant get it to pick randomly
You can either get theclines to be the same length and
use a random index to seek() to the start of the line you want.
Or you can build a separa
Well he could implement the indexing into his program and check mtimes to
decide if he needs to reindex.
But yes, as long the file fits into memory, readlines (or
list(file("quotes,txt")) makes more sense.
Andreas
-- Ursprüngl. Mitteil. --
Betreff:Re: [Tutor] reading random line from a
18 matches
Mail list logo