Re: error help import random

2015-11-20 Thread Dylan Riley
On Friday, November 20, 2015 at 11:06:05 PM UTC, Rob Gaddi wrote: > On Fri, 20 Nov 2015 15:15:42 -0500, Terry Reedy wrote: > > > On 11/20/2015 12:22 PM, Dylan Riley wrote: > >> This is my fortune cookie program i wrote in python. > >> the problem is it will not run past the first line of input. >

Re: error help import random

2015-11-20 Thread Rob Gaddi
On Fri, 20 Nov 2015 15:15:42 -0500, Terry Reedy wrote: > On 11/20/2015 12:22 PM, Dylan Riley wrote: >> This is my fortune cookie program i wrote in python. >> the problem is it will not run past the first line of input. >> could someone please identify the error and explain to me why. >> here is t

Re: error help import random

2015-11-20 Thread Seymore4Head
On Fri, 20 Nov 2015 09:22:10 -0800 (PST), Dylan Riley wrote: >This is my fortune cookie program i wrote in python. >the problem is it will not run past the first line of input. >could someone please identify the error and explain to me why. >here is the code: > >#the program silulates a fortune c

Re: error help import random

2015-11-20 Thread Terry Reedy
On 11/20/2015 12:22 PM, Dylan Riley wrote: This is my fortune cookie program i wrote in python. the problem is it will not run past the first line of input. could someone please identify the error and explain to me why. here is the code: #the program silulates a fortune cookie #the program shoul

Re: error help import random

2015-11-20 Thread Ian Kelly
On Fri, Nov 20, 2015 at 10:57 AM, Peter Otten <__pete...@web.de> wrote: > Dylan Riley wrote: > >> input("\nPress enter to see your fortune") > > Make sure that you run your code with Python 3, not Python 2. Or if you must use Python 2, use raw_input() instead of input(). >> fortune = random.randr

Re: error help import random

2015-11-20 Thread Peter Otten
Dylan Riley wrote: > This is my fortune cookie program i wrote in python. > the problem is it will not run past the first line of input. > could someone please identify the error and explain to me why. > here is the code: > > #the program silulates a fortune cookie > #the program should display o

Re: error help import random

2015-11-20 Thread Chris Angelico
On Sat, Nov 21, 2015 at 4:22 AM, Dylan Riley wrote: > This is my fortune cookie program i wrote in python. > the problem is it will not run past the first line of input. > could someone please identify the error and explain to me why. > here is the code: > > #the program silulates a fortune cookie

Re: Error help

2012-08-02 Thread danielashiloh
On Thursday, 2 August 2012 12:18:59 UTC+1, Peter Otten wrote: > danielashi...@googlemail.com wrote: > > > > > This error has been bugging me for days. I know it's minor, but it's > > > really getting in the way of my programming. I'm programming a data > > > analysis programme for a psycholog

Re: Error help

2012-08-02 Thread Philipp Hagemeister
Let's go thorugh this program: On 08/02/2012 12:58 PM, danielashi...@googlemail.com wrote: > import cPickle, pickle you probably want to transparently fall back to pickle if cPickle is not available. > print 'WELLCOME TO THE LIBET CLOCK EXPERIMENT DATA ANALYSIST' > file=raw_input('\nPLEASE ENTER

Re: Error help

2012-08-02 Thread Dave Angel
On 08/02/2012 06:58 AM, danielashi...@googlemail.com wrote: > Hi all > > This error has been bugging me for days. I know it's minor, but it's really > getting in the way of my programming. I'm programming a data analysis > programme for a psychology experiment which takes pickled data from the >

Re: Error help

2012-08-02 Thread marmata
Hi, > This error has been bugging me for days. Doesn't look like a tab error but: > partifipant_info=data'Participant Info'] This line is wrong, it should be: partifipant_info=data['Participant Info'] That's probably what's triggering the error! Cheers, ]\/[arco -- http://mail.python.org/ma

Re: Error help

2012-08-02 Thread Peter Otten
danielashi...@googlemail.com wrote: > This error has been bugging me for days. I know it's minor, but it's > really getting in the way of my programming. I'm programming a data > analysis programme for a psychology experiment which takes pickled data > from the experiment and produces averages. Fo