Hello and welcome to this video.
In this video I'm going to briefly explain what Python expressions are what are Python expressions.
An expression is basically anything that has a value.
It could be a number.
He could be a text which is also called a string or it could be adding two numbers together using an
operator saw an expression can contain an operator like three plus four.
The Plus here is an addition operator.
It can also contain or per hand.
The upper hand is basically the actual values like three is an upper hand for.
He's also an upper hand.
Statements are made up of one or more expressions so let me illustrate some basic expression.
I'm going to be using the command prompt on my Windows computer.
If you're on a Mac you can use the terminal when you're on the terminal on the Mac.
You need to type in Python 3 if you're on a window just typing Python press enter and that gives you
access to the Python interactive shell.
So the first expression I want to write here is just to add two numbers together I say three plus four
press enter and I get seven back.
So the beauty of the interactive show it gives you a response to what it is you are typing in.
Let's do another one so they do three times three and presenter okay he's been nine.
Let's do a text this time.
Text is basically also known as a string.
So I can just say hello world.
And if I press enter it gives me back hello world again I can use a variable a variable is something
that stores data so I can create a variable I can say B equals to you use the equals two to assign a
value.
So I can say I want b to store the value of eight sorry value of as a seven plus seven presenter.
Now if I call B B will give me 14 because that's the value of adding seven to seven.
So these are just some basic examples of what an expression is.
So that is it for this brief video on Python expressions.
Thanks for watching.
Bye for now.