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

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.

主站蜘蛛池模板: 阿巴嘎旗| 黄平县| 肃宁县| 东乡族自治县| 高密市| 岚皋县| 扶风县| 黎川县| 靖宇县| 巨鹿县| 大英县| 金寨县| 侯马市| 安化县| 西盟| 海安县| 怀远县| 深圳市| 黑龙江省| 久治县| 龙井市| 望谟县| 贡觉县| 沛县| 临湘市| 静海县| 军事| 连江县| 娄底市| 色达县| 莎车县| 崇文区| 蓝山县| 银川市| 兴文县| 三河市| 镶黄旗| 霍林郭勒市| 宾阳县| 崇文区| 桃江县|