Re: [Tutor] user input help

2011-01-05 Thread Alan Gauld
"Jason Staudenmayer" wrote I'm working on a small program to add users to a sqlite db. Try the database topic in my tutorial where I do a very similar thing... code follows - def promptInput(): ... result = (lname, fname, email) return result def getEmplyInfo():

Re: [Tutor] user input help

2011-01-05 Thread Jason Staudenmayer
> -Original Message- > From: Alex Hall [mailto:mehg...@gmail.com] > Sent: Wednesday, January 05, 2011 3:23 PM > To: Jason Staudenmayer > Cc: tutor@python.org > Subject: Re: [Tutor] user input help > > > On 1/5/11, Jason Staudenmayer wrote: > > Hi all,

Re: [Tutor] user input help

2011-01-05 Thread Alex Hall
On 1/5/11, Jason Staudenmayer wrote: > Hi all, I'm pretty new to programming in general and figured I'd try out > python. > I'm working on a small program to add users to a sqlite db. The problem I'm > having it dealing with the user input, I'd like to be able to repeat the > function to get the i

[Tutor] user input help

2011-01-05 Thread Jason Staudenmayer
Hi all, I'm pretty new to programming in general and figured I'd try out python. I'm working on a small program to add users to a sqlite db. The problem I'm having it dealing with the user input, I'd like to be able to repeat the function to get the input if the user doesn't accept it. here's