1 00:00:00,090 --> 00:00:03,230 Hello and welcome to this video. 2 00:00:03,270 --> 00:00:14,480 In this video I'm going to briefly explain what Python expressions are what are Python expressions. 3 00:00:14,640 --> 00:00:20,150 An expression is basically anything that has a value. 4 00:00:20,310 --> 00:00:21,780 It could be a number. 5 00:00:21,900 --> 00:00:29,880 He could be a text which is also called a string or it could be adding two numbers together using an 6 00:00:30,030 --> 00:00:38,130 operator saw an expression can contain an operator like three plus four. 7 00:00:38,160 --> 00:00:42,260 The Plus here is an addition operator. 8 00:00:42,510 --> 00:00:46,820 It can also contain or per hand. 9 00:00:46,890 --> 00:00:52,970 The upper hand is basically the actual values like three is an upper hand for. 10 00:00:53,550 --> 00:00:58,000 He's also an upper hand. 11 00:00:58,050 --> 00:01:08,960 Statements are made up of one or more expressions so let me illustrate some basic expression. 12 00:01:08,970 --> 00:01:14,050 I'm going to be using the command prompt on my Windows computer. 13 00:01:14,280 --> 00:01:20,590 If you're on a Mac you can use the terminal when you're on the terminal on the Mac. 14 00:01:20,610 --> 00:01:29,910 You need to type in Python 3 if you're on a window just typing Python press enter and that gives you 15 00:01:29,970 --> 00:01:33,600 access to the Python interactive shell. 16 00:01:34,110 --> 00:01:44,730 So the first expression I want to write here is just to add two numbers together I say three plus four 17 00:01:45,330 --> 00:01:48,880 press enter and I get seven back. 18 00:01:48,930 --> 00:01:56,040 So the beauty of the interactive show it gives you a response to what it is you are typing in. 19 00:01:56,100 --> 00:02:05,460 Let's do another one so they do three times three and presenter okay he's been nine. 20 00:02:06,060 --> 00:02:08,730 Let's do a text this time. 21 00:02:08,760 --> 00:02:11,720 Text is basically also known as a string. 22 00:02:12,390 --> 00:02:18,060 So I can just say hello world. 23 00:02:18,820 --> 00:02:30,250 And if I press enter it gives me back hello world again I can use a variable a variable is something 24 00:02:30,250 --> 00:02:37,690 that stores data so I can create a variable I can say B equals to you use the equals two to assign a 25 00:02:37,690 --> 00:02:38,450 value. 26 00:02:38,650 --> 00:02:53,100 So I can say I want b to store the value of eight sorry value of as a seven plus seven presenter. 27 00:02:53,120 --> 00:03:02,090 Now if I call B B will give me 14 because that's the value of adding seven to seven. 28 00:03:02,090 --> 00:03:09,080 So these are just some basic examples of what an expression is. 29 00:03:09,110 --> 00:03:15,530 So that is it for this brief video on Python expressions. 30 00:03:15,530 --> 00:03:16,730 Thanks for watching. 31 00:03:16,730 --> 00:03:17,510 Bye for now.