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

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.

主站蜘蛛池模板: 鄂温| 乌兰县| 高雄县| 盐津县| 商丘市| 九台市| 洪雅县| 周至县| 唐河县| 阿拉善左旗| 曲沃县| 建阳市| 蓬溪县| 陇南市| 湄潭县| 玛纳斯县| 阳谷县| 山东省| 余庆县| 合江县| 浦江县| 随州市| 方正县| 乌审旗| 卢龙县| 红原县| 湖口县| 翁牛特旗| 府谷县| 眉山市| 阿图什市| 墨脱县| 邓州市| 昌宁县| 中卫市| 股票| 乌拉特后旗| 石棉县| 鹤庆县| 延长县| 修文县|