官术网_书友最值得收藏!

Returning values from a function

Functions can perform a set of defined operations and finally return a value at the end. Let's consider the following example:

def square(a): 
return a**2

In this example, the function returns a square of the argument. In Python, the return keyword is used to return a value requested upon completion of execution.

主站蜘蛛池模板: 会昌县| 五家渠市| 青铜峡市| 石河子市| 瑞昌市| 错那县| 泰宁县| 江陵县| 台北县| 武城县| 论坛| 利辛县| 临潭县| 潼南县| 温泉县| 绥化市| 漯河市| 保靖县| 昌都县| 万载县| 玉山县| 安丘市| 清河县| 望奎县| 沙雅县| 乐至县| 枣阳市| 浦城县| 舒城县| 金秀| 阿克陶县| 龙山县| 沁水县| 天水市| 永昌县| 潢川县| 迭部县| 永寿县| 沂南县| 顺平县| 保靖县|