On Mon, Oct 1, 2012 at 7:46 PM, Alan Gauld wrote:
>
> As c smith points out, Python lists have a pop/push mechanism as standard
> which makes implementing a stack in Python fairly trivial.
>
> To expand on how reversing works consider pushing the string foo onto the
> stack then popping it off aga
On 01/10/12 20:59, Matthew Dalrymple wrote:
i don't really understand the pop and push or even stacks for that
matter...the professor i have isn't really the best at teaching...so if
anyone could give me a hand with any of this that would be appreciated
The Raw materials topic in my tutor has
On Mon, Oct 1, 2012 at 4:23 PM, eryksun wrote:
>
> Finally:
>
>
> print(s1)
>
>
> If s1 is an iterable sequence, you can print the string using either
> "print(''.join(s1))" or "print(*s1, sep='')". Also, at this point
> should s1 be emptied?
Sorry, that last statement was wrong. I was th
On Mon, Oct 1, 2012 at 11:45 AM, Matthew Dalrymple
wrote:
>
> Im trying to write an html syntax checker...pretty much read an imported
> file, if it has all the opening and closing "<" and ">" it will return True
> and if it doesn't it will return False.
It's just this htmlChecker function that y
> i don't really understand the pop and push or even stacks for that
> matter...the professor i have isn't really the best at teaching...so if
> anyone could give me a hand with any of this that would be appreciated
The way I was taught about pop and push:
Think of a stack of dishes. Each time y
yourlisthere.pop() will return the last element in the list and change the
list so it no longer contains the element. yourlisthere.push(x) will add x
to the end of the list. Works on more than just lists
___
Tutor maillist - Tutor@python.org
To unsubscr
> Subject: Re: [Tutor] html checker
> From: walksl...@gmail.com
> Date: Mon, 1 Oct 2012 12:38:07 -0700
> CC: tutor@python.org
> To: computer_dud...@hotmail.com
>
> Dear Matthew,
>
> > I don't need to hear how bad my programs are...either you are gonna
On 1 Oct 2012 15:28, "Matthew Dalrymple"
wrote:
>
> I don't need to hear how bad my programs are...either you are gonna help
or your not...if
Matthew,
Bob didn't cuddle you and he may have been a bit more brusque than you'd
have liked. However, his response to you was intended as help, it provid
You will not find much help in getting a program to 'just work' regardless
of your own experience. My advice would be to try and run small parts at a
time to pinpoint where the problem is. Are you opening and reading the file
properly? Are you iterating over the read file properly? Does your html
c
Dear Matthew,
> I don't need to hear how bad my programs are...either you are gonna help or
> your not...if you have questions about what i have wrote or why i wrote
> something someway ask...dont just jump to conclusions
>
> I forgot to include that i had to write a "stack" function in a "pyt
400
From: bgai...@gmail.com
To: computer_dud...@hotmail.com
CC: tutor@python.org
Subject: Re: [Tutor] html checker
On 10/1/2012 11:45 AM, Matthew
Dalrymple wrote:
Im trying to write an html syntax checker...pretty much read an
imported file,
On 10/1/2012 11:45 AM, Matthew Dalrymple wrote:
Im trying to write an html syntax checker...pretty much read an
imported file, if it has all the opening and closing "<" and ">" it
will return True and if it doesn't it will return False.
this is what i have so far
http://pastie.org/4891833
how
12 matches
Mail list logo