Newbie questions on Python

Neil Cerutti neilc at norwich.edu
Tue Apr 16 13:16:17 EDT 2013


On 2013-04-16, Lele Gaifax <lele at metapensiero.it> wrote:
> Neil Cerutti <neilc at norwich.edu> writes:
>
>> Imagine something like the following for loop taking place
>> somewhere:
>>
>> for (int i = 2; i <= 0; --i) {
>>     fprintf(a[i]);
>> }
>
> Neil most probably meant
>
> for (int i = 2; i >= 0; --i) {
>     fprintf(a[i]);
> }
>
> where "fprintf" is actually a fictitious "do_something" function.
>
> ciao, lele.

Thanks for the correction.

-- 
Neil Cerutti



More information about the Python-list mailing list