~ Numbers

Numbers in Python

Numbers in Python work like numbers you've seen elsewhere; you can apply all the things you've learned about basic math to Python.

To show you what I mean, type a few more numbers into the console below, pressing return after each one:

As you can tell, Python understands positive and negative numbers.

No commas

There's no commas in the numbers above, even when they're greater than 1,000. That's because commas don't mean place value in Python; they create tuples, which we'll discuss later. For now: just leave commas out of your numbers.

Numbers with decimals

Decimal points, though, are a-okay: