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

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.

主站蜘蛛池模板: 福鼎市| 阿城市| 宽甸| 汉寿县| 开原市| 驻马店市| 深泽县| 榕江县| 芜湖县| 永平县| 宁波市| 宁远县| 屏边| 油尖旺区| 日照市| 罗定市| 临清市| 博客| 衡阳市| 东城区| 武强县| 兰溪市| 南涧| 高尔夫| 登封市| 合作市| 湖南省| 自贡市| 九江县| 永吉县| 临城县| 沅陵县| 阳原县| 乐陵市| 江安县| 皋兰县| 通许县| 波密县| 毕节市| 体育| 大庆市|