If you decide to run with wxPython there is a pretty handy video series you
could watch:
http://showmedo.com/videotutorials/series?name=PythonWxPythonBeginnersSeries
Eric
On Tue, Jul 6, 2010 at 1:48 PM, Alan Gauld wrote:
> "Payal" wrote
>
> gui programming? There seems to be many ways to do
I'm fairly new to programming and Python as well, but I have a suggestion
that may be worth looking into-- are you familiar with pickling? It sounds
like something that may fit in well with what you're trying to do.
Good reference article:
http://articles.techrepublic.com.com/5100-10878_11-105219
Hi all,
New programmer here. This is what I want to do:
1. Open an existing text file named "grocery_list.txt", which has one
item per line, like so:
butter
juice
bread
asparagus
magazines
ice cream
2. ...and search for these items in a pre-defined list.
But I can't seem to get this working. R
Fantastic! I have this, which now works. Is there a better place to put
string.strip?
aisle_one = ["chips", "bread", "pretzels", "magazines"]
grocery_list = open("grocery_list.txt", "r")
for line in grocery_list.readlines():
if line.strip() in aisle_one:
print "success! i found %s" % l
On Wed, Jul 14, 2010 at 12:26 PM, Alan Gauld wrote:
>
> If you never need a stripped version of line again, or if you
> are planning on writing it out to another file then this is fine.
> If you are going to use it again its probably better to strip()
> and asign to itelf:
>
> line = line.strip()
Follow-up question: My code is now this:
aisle_one = ["chips", "bread", "pretzels", "magazines"]
aisle_two = ["juice", "ice cream"]
aisle_three = ["asparagus"]
def find_groceries():
grocery_list = open("grocery_list.txt", "r")
for line in grocery_list.readlines():
line = line.stri
Thanks for the pointers! This is now working, albeit probably ugly and clunky:
aisle_one = ["chips", "bread", "pretzels", "magazines"]
aisle_two = ["juice", "ice cream"]
aisle_three = ["asparagus"]
def find_groceries():
with open("grocery_list.txt") as grocery_list:
first_trip = ["L
Hi Daniel,
As a fellow complete beginner, I have actually started a web site that
details just this. I'm learning as I go and have tried to put together
a curriculum of sorts that will helpfully guide other newbies as well,
and reinforce what I'm learning for myself.
http://letslearnpython.com/
Not sure if this is the right place for this, since this is a tutor list,
but I think it is because it involves learning Python and the application of
knowledge.
I've just started learning it as my initial programming language as of two
months ago. I like to think I'm making steady progress, and I
>
> Get a linux hosting account, and a web address, most linux hosting
> comes with python, so practice in the 'cloud'.
>
I have that-- an account with Dreamhost. This hasn't solved my problems yet
though. Like I said, I can have it write a simple
Hello, World!
...but if I make it do anything mo
On Sat, Jul 31, 2010 at 4:48 PM, bob gailer wrote:
>
> Please post that code, and the URL you use to invoke it.
>
test.py: this works on my laptop but not on the server
http://pastebin.com/ChjUzLRU
test-working.py: this works on both laptop & server
http://pastebin.com/iLNTrGdW
both availab
On Sat, Jul 31, 2010 at 9:53 PM, bob gailer wrote:
>
> Main difference I see is lack of any html tags in test.py! Try adding
>
>1. print ""
> 2. print "Publix Aide"
> 3. print ""
> 4. # the store map print statements go here
> 5. print ""
>
> I understand t
On Sun, Aug 1, 2010 at 1:56 PM, Che M wrote:
> For a long time I have hoped for a "Python web apps for absolute beginners"
> tutorial that doesn't assume any knowledge. For a beginner, it is not even
> clear what a "web frameworks" is let alone which one he/she should start
> with or if it is ev
There are a few solutions here:
http://stackoverflow.com/questions/904928/python-strftime-date-decimal-remove-0
Eric
On Wed, Aug 4, 2010 at 1:30 PM, Eduardo Vieira wrote:
> I'm trying this example from python docs:
> from time import gmtime, strftime
> strftime("%a, %d %b %Y %H:%M:%S +", g
Your ideas are intriguing to me, and I wish to subscribe to your newsletter.
Eric
On Fri, Aug 6, 2010 at 11:19 AM, Ian Ozsvald wrote:
> Hi all. I'm a long time Pythonista and co-founder of
> http://ShowMeDo.com/ (and author of 140 of the Python tutorials
> there), I'm here with an idea...
>
>
15 matches
Mail list logo