Python Tutorial 22 : How to return a value from a function

As mentioned previously, the “Def” statement defines a function. So how to return a value from a function?   We can use the return statement to return a value from a function. For example: [vtftable cols=”{0}0:fff2cc;{/}”] def dummyfunction (i):{;n}    return i;nn; [/vtftable] In other languages, you may have to define the datatype of the … Read more