Re: [Tutor] Why isn't my simple if elif script not working?

2012-07-21 Thread Santosh Kumar
In first half of this script: prompt = raw_input("Can you tell me your name? ") if prompt in ("Yes", "yes", "y", "Y"): name = raw_input("What's your name? ") elif prompt in ("No", "no", "n", "N"): exit("OK, have nice day..") else: prompt = name if name == "Santosh": print "Hey! I

Re: [Tutor] Rapidly Importing CSVs with Python into MySQL

2012-07-21 Thread Alan Gauld
On 20/07/12 21:34, Fred G wrote: Hi-- This question has to do with MySQL but is fundamentally a python question, so apologies if it seems tangential initially... I've written a long python file that creates all the tables in database To be honest I'd normally do that by writing a SQL file and