avatarMichael Galarnyk

Free AI web copilot to create summaries, insights and extended knowledge, download it at here

586

Abstract

r="0" height="480" width="854"> </div> </div> </figure></iframe></div></div></figure><p id="81d9">Part of learning Python (or any programming language) is understanding the basic syntax. This post goes over basic mathematical operations in Python for both Python 2 and 3. As always, the code in the post is available on my <a href="https://github.com/mGalarnyk/Python_Tutorials/blob/master/Python_Basics/Intro/Python3Basics_Part1.ipynb">github</a> and can be viewed down below as well.</p> <figure id="0702"> <div> <di

Options

v>

            <iframe class="gist-iframe" src="/gist/mGalarnyk/c03cda0cc9030d30a03b54bd25d6e4ba.js" allowfullscreen="" frameborder="0" height="undefined" width="undefined">
          </div>
        </div>
    </figure></iframe></div></div></figure><p id="8bbd">Note for the integer division example, 130/2 = 65 for Python 2 as opposed to 65.0 for Python 3. Please let me know if you have any questions! The next post goes over <a href="https://readmedium.com/python-basics-3-if-statements-bcc29c09c710">If Statements in Python</a>.</p></article></body>

Python Simple Math

Part of learning Python (or any programming language) is understanding the basic syntax. This post goes over basic mathematical operations in Python for both Python 2 and 3. As always, the code in the post is available on my github and can be viewed down below as well.

Note for the integer division example, 130/2 = 65 for Python 2 as opposed to 65.0 for Python 3. Please let me know if you have any questions! The next post goes over If Statements in Python.

Python
Programming
Tutorial
Jupyter Notebook
Recommended from ReadMedium