[Tutor] if statement

2010-11-02 Thread Glen Clark
File "/home/glen/workspace/test.py", line 19 if confirmed == "y": ^ SyntaxError: invalid syntax Why does this not work??? PyDev says "Expected:else" ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscriptio

Re: [Tutor] if statement

2010-11-02 Thread Glen Clark
input("Please enter a nem name: ") else: #do nothing print(Entries) On Tue, 2010-11-02 at 15:05 -0400, Alex Hall wrote: > On 11/2/10, Glen Clark wrote: > > File "/home/glen/workspace/test.py", line 19 > > if confirmed == "y": > >

Re: [Tutor] if statement

2010-11-02 Thread Glen Clark
: > optional: do something else when the above condition is false and > this condition is True. > else: > do something else when the above conditions are false. > > > You can try this, > > > if confirmed == "y": > stuff > els

Re: [Tutor] if statement

2010-11-02 Thread Glen Clark
Okay, Thank you very much for the help guys :) On a side note.. I didn't know you could do something like this: x = z if (thus why I needed the closing parenthesis) ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription o

[Tutor] Looking for a tutor to review my code and provide constructive feedback.

2010-11-04 Thread Glen Clark
Hello, I have completed my first python script. This is after watching a video guide on python and is my first attempt at writing code in python. While the code is not very useful I got the idea for it when googling "python projects for beginners". The idea was to create a script that asked the u

Re: [Tutor] Looking for a tutor to review my code and provideconstructive feedback.

2010-11-05 Thread Glen Clark
oper code before moving onto learning modules and such. On 5 November 2010 08:32, Mark Tolonen > wrote: > > "Glen Clark" wrote in message > news:aanlktimabbj8ae35q3ao9+xzbvtnyzbz3wrudahmn...@mail.gmail.com... > > Hello, >> >> I have completed my first pyt

Re: [Tutor] Looking for a tutor to review my code and provide constructive feedback.

2010-11-05 Thread Glen Clark
> Sent from a mobile device with a bad e-mail client. > ----- > > On Nov 4, 2010, at 3:10 PM, Glen Clark wrote: > > Hello, > > I have completed my first python script. This is after watching a video > guide on python and is my first attempt

Re: [Tutor] Hi

2010-11-06 Thread Glen Clark
Luke, I used a video from Lynda.com, simply because I already had a subscription. The price was about $25 per month which I think is more expensive that showmedo. Or you could buy it for $99 (Python 3 Essential Training (DVD-ROM)). The video's were very good for me personally because he was stra

Re: [Tutor] Hi

2010-11-06 Thread Glen Clark
, Glen Clark wrote: > Luke, > > I used a video from Lynda.com, simply because I already had a > subscription. The price was about $25 per month which I think is more > expensive that showmedo. Or you could buy it for $99 (Python 3 Essential > Training (DVD-ROM)). > > The video

[Tutor] Multiple windows in Tkinter

2008-10-02 Thread Glen Clark
Hello, I am a little confused how multi-windows work in Tkinter. I am currently using it while learning to program. Using it for single window apps/scripts is fine. However what I dont understand is: What is toplevel? Is it the same as Tk()? Do I initialise a root using Tk() and then use toplevel

[Tutor] Looking for feedback on improving my code.

2011-05-17 Thread Glen Clark
Hello tutors, Have not posted in a while. Started learning python a while back but had to stop after a couple of weeks due to lack of time. Anyway pretty much forgotten most things but if anyone has time I would love some feedback on my application. My main aim to to learn python, as a hobby, and