Function error
Terry Reedy
tjreedy at udel.edu
Sat Jun 14 16:10:28 EDT 2014
On 6/14/2014 2:17 PM, sandhyaranimangipudi at gmail.com wrote:
> I am new to python, pls help me to resolve the below error
Please read the nice tutorial, though no necessarily all at once. It
explains things like this.
>>>> def fib(n):
> ... """Print a Fibonacci series up to n."""
> File "<stdin>", line 2
> """Print a Fibonacci series up to n."""
> ^
> IndentationError: expected an indented block
>
--
Terry Jan Reedy
More information about the Python-list
mailing list