<?xml version="1.0" encoding='utf-8'?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card id="card1" title="Variable (high-level programming language) - Page 28 - Wikipedia">
<p>
<a accesskey="1" href="page.php?w=Variable_(high-level_programming_language)&amp;p=27">1.Previous</a><br />
<a accesskey="3" href="page.php?w=Variable_%28high-level_programming_language%29&amp;p=29">3.Next</a>
</p>
<p>code segment,</p>

<p><syntaxhighlight lang="python">def add_two(x: int) -> int:    return x + 2</syntaxhighlight></p>

<p>print(add_two(5))<br/>
# prints: 7</p>

<p>the variable named  is a <a href="page.php?w=Parameter_%28computer_programming%29">parameter</a> because it is given a value when the function is called. The integer 5 is the argument which gives  its value. In most languages, function parameters have local scope. This specific variable named  can only be referred to within the  function (though of course other functions can also</p><p>
<a accesskey="1" href="page.php?w=Variable_(high-level_programming_language)&amp;p=27">1.Previous</a><br />
<a accesskey="3" href="page.php?w=Variable_%28high-level_programming_language%29&amp;p=29">3.Next</a>
</p>

<do type="prev" label="Search">
        <go href="search.wml"/>
</do>

</card>
</wml>
