5: Calculations

The Crystal Ball - Instruction Manual I: Introduction to Data Science · LibreTexts

0%

Contents

    Text

    Size
    100%
    Theme
    Typeface
    Line length
    Spacing

    From LibreTexts, under CC BY-SA 4.0, as the source states it; its equations are written in TeX, which the PDF shows typeset. This page at LibreTexts.

    5: Calculations

    Our discipline obviously involves a lot of computation – in fact, I expect the first image that comes to mind when most people hear the words “data science” is one of numerical calculation. In this chapter, I’ll lay out the Python syntax for performing various mathematical operations on numbers, as well as manipulating strings. These things appear in every program, and you’ll find it all straightforward.

    And then I’ll drop a bomb on you. I’ll unveil a Python behavior which you’ll probably find completely unexpected, which flummoxes nearly every student who first sees it, and yet which you must understand and master to succeed in Python or any programming language.


    This page titled 5: Calculations was last modified on Sun, 18 Sep 2022 02:06:02 GMT and is shared under a CC BY-SA 4.0 license and was authored, remixed, and/or curated by Stephen Davies (allthemath.org) via source content that was edited to the style and standards of the LibreTexts platform.