How do you set up a stack?

piet at cs.uu.nl piet at cs.uu.nl
Wed May 9 12:40:02 CEST 2001


>>>>> Tyler Eaves <tyler at tylereaves.com> (TE) writes:

TE> On Wed, 09 May 2001 02:01:35 GMT, the_2nd_coming
TE> <jpetzold at twmi.rr.com> wrote:


TE> try this code:

TE> f=raw_input('>')
TE> print eval(f)

Which is equivalent to the simpler:
print input('>')
-- 
Piet van Oostrum <piet at cs.uu.nl>
URL: http://www.cs.uu.nl/~piet [PGP]
Private email: P.van.Oostrum at hccnet.nl



More information about the Python-list mailing list