From 74a4b1175ec976dbc8bfa4167fb57049e711f63b Mon Sep 17 00:00:00 2001 From: Blaze2305 <44285159+Blaze2305@users.noreply.github.com> Date: Wed, 21 Nov 2018 05:08:56 +0530 Subject: [PATCH] added general syntax of python function definition (#22670) * added general syntax of python function definition * Cleanup --- guide/english/python/defining-functions/index.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/guide/english/python/defining-functions/index.md b/guide/english/python/defining-functions/index.md index bb847c1bc0..72df3123d9 100644 --- a/guide/english/python/defining-functions/index.md +++ b/guide/english/python/defining-functions/index.md @@ -3,6 +3,16 @@ title: Python Defining Functions --- Python Docs +### Basic structure of a python function + + >>> def function_name(arguments): + ... ''' docstring''' + ... statement(\s) + + + +### Example + We can create a function that writes the Fibonacci series to an arbitrary boundary: >>> def fib(n): # write Fibonacci series up to n