[Tutor] help
Andrei Kulakov
ak@silmarill.org
Mon, 01 Oct 2001 16:53:03 -0400
On Mon, Oct 01, 2001 at 11:37:15AM -0700, RIDDLE BOX wrote:
> I am having trouble trying to get a loop into my program, and I am wondering if someone could help me better understand using "while"?
>
> here is a copy of the code that I am having trouble with if someone could explain what I am doing wrong I would appreciate it thanks
>
> def second_chance(self):
> j = second
> while j = open:
^
What's that?? This isn't valid python code. I don't know
what it's supposed to do , either.
> read = raw_input("where is the file located?")
> inp = open(read, "r")
> for line in inp.readlines():
> print line
>
>
>
> ------------------------------------------------------------
> This Email Is Provided Free Of Charge Thanks To http://www.vitalogy.org
> Sponsored by: http://www.iminteractive.net Internet Solutions, web host & more!
>
> _______________________________________________
> Tutor maillist - Tutor@python.org
> http://mail.python.org/mailman/listinfo/tutor
--
Cymbaline: intelligent learning mp3 player - python, linux, console.
get it at: cy.silmarill.org