Let's start to see how we can use numbers and also operations on numbers with Python.
So this will help us when we start to work with variables.
So as you have seen, if I just type 2, okay,
2 is evaluated here to 2, and it's printed.
So you can see the number 2.
So you can use round numbers in Python, okay, 2, 4.
You can also use negative number, minus 3, etc.
You can also make computations, for example, 4
plus 5, okay, we can add a space for clarity.
And you can see 4 plus 5 is evaluated to 9, okay, you can
also do 7 minus 5, like this, is evaluated to 2, okay.
Multiplication is also working and division.
6 divided by 2 is equal to 3.
As you can see here, we have 3.0, okay, we can also use float numbers.
So let's say 3.14, okay, you can see 3.14.
So if I just write 2, I get 2, like this, as a round number.
If I write 2.0, okay, I get 2.0 as a float number.
And you can also use any kind of computation
on float number, let's say 2.5 plus 3.4,
which is equal to 5.9, okay, you can combine
operations, let's say 4 plus 5, multiply by 2,
and you can see this is 14, and now I can also
add parentheses to change the order, okay, multiply by 2, 18, okay.
In this case here, the multiplication has the
priority, so it will compute 10, okay, and add 4.
In this case, because we have parentheses, then the addition has the priority,
so it will compute 9 and then multiply by 2.
So well, if you know basic math operations, you can
see that working with numbers is not difficult at all.