Running Sum script

Chris Rebert clp2 at rebertia.com
Fri Sep 4 23:09:34 CEST 2009


On Fri, Sep 4, 2009 at 1:49 PM, <><><><><juli.dolzhenko at gmail.com> wrote:
> On Sep 4, 4:37 pm, Maggie <la.f... at gmail.com> wrote:
>> On Sep 4, 4:37 pm, Tobiah <t... at tobiah.org> wrote:
>>
>> > > in the terminal i get a very strange "permission denied" error that might
>> > > not have anything to do with the code. I checked permissions for the file
>> > > and they are set to "read and write" so, again, I am really not sure what
>> > > going wrong.
>>
>> > Try:
>>
>> >         python myfile
>>
>> > Or
>>
>> >         chmod +x myfile
>> >         ./myfile
>>
>> try it where? code or terminal?
>>
>> thanks so much?
>
> fantastic...! thank you so much..now i finally have my errors - which
> are the following --
>
>  File "running_sum_formisano.py", line 18
>    sum+= int(trial)
>      ^
> IndentationError: expected an indented block
>
> how would this be fixed?

Have you even read the Python tutorial? Please do so if you haven't already.
Indent the line by 4 spaces.

- Chris
--
http://blog.rebertia.com



More information about the Python-list mailing list