New to python

Avi Homes Moo at houston.rr.com
Mon Feb 18 17:49:02 EST 2002


Having problems with dictionaries..

I have one setup i.e.

---
Items{ 'IName': "empty", 'IDesc': "empty", 'IPrice': "empty"}
temp=raw_input("Whats the name?")
Items('IName')=temp
--

and it is not liking the 3rd line of code.. I have been a c++ coder for a
few years, just started looking at python yesterday, but this simple problem
is kinda eluding me.  temp should hold the value for whatever the user input
was, correct? this is being done in pythonwin btw. and raw_input should make
it so the user doesn't have to say "this is my input" and have to include
the quotes..

thanks.
Avi





More information about the Python-list mailing list