{article Examples__Python 3.4 }{title} {text}{/article}

Python 3.4.1 (v3.4.1:c0e311e010fc, May 18 2014, 10:45:13) [MSC v.1600 64 bit (AMD64)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> import math
>>> math.sqrt(16)
4.0
>>> math.sqrt(12)
3.4641016151377544
>>> math.sqrt(10)
3.1622776601683795
>>> math.sqrt(8)
2.8284271247461903
>>> math.sqrt(6)
2.449489742783178
>>> math.sqrt(4)
2.0
>>> math.sqrt(2)
1.4142135623730951
>>> math.sqrt(0)
0.0
>>> math.sqrt()
Traceback (most recent call last):
File "<pyshell#9>", line 1, in <module>
math.sqrt()
TypeError: sqrt() takes exactly one argument (0 given)
>>>

{source}
<!-- You can place html anywhere within the source tags -->
<pre class="brush:py;">
Python 3.4.1 (v3.4.1:c0e311e010fc, May 18 2014, 10:45:13) [MSC v.1600 64 bit (AMD64)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> import math
>>> math.sqrt(16)
4.0
>>> math.sqrt(12)
3.4641016151377544
>>> math.sqrt(10)
3.1622776601683795
>>> math.sqrt(8)
2.8284271247461903
>>> math.sqrt(6)
2.449489742783178
>>> math.sqrt(4)
2.0
>>> math.sqrt(2)
1.4142135623730951
>>> math.sqrt(0)
0.0
>>> math.sqrt()
Traceback (most recent call last):
    File "<pyshell#9>", line 1, in <module>
    math.sqrt()
TypeError: sqrt() takes exactly one argument (0 given)
>>>
</pre>

<script language="javascript" type="text/javascript">
    // You can place JavaScript like this

</script>
<?php
    // You can place PHP like this

?>
{/source}