Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:11,330 --> 00:00:13,850
Hire one and welcome in this new video.
2
00:00:14,270 --> 00:00:23,330
In this video, we are going to talk about variable assignment viable is one of the most important thing
3
00:00:23,930 --> 00:00:37,490
when you walk with Programmation because it will allow us to store some data in variable.
4
00:00:37,880 --> 00:00:49,910
So it will allow us to store information to work with it later, and it will be very essential when
5
00:00:49,910 --> 00:00:51,190
we call.
6
00:00:52,040 --> 00:00:57,350
So first, we are going to see how to create and numerical variables.
7
00:00:57,830 --> 00:00:59,360
So it is very easy.
8
00:00:59,660 --> 00:01:02,980
You just have to put a number.
9
00:01:02,990 --> 00:01:11,510
So, for example, variable or x and you put a value.
10
00:01:12,860 --> 00:01:23,210
So if I want to create another variable, I just have to put, for example, why I put also six and
11
00:01:24,590 --> 00:01:28,880
I can print the two variables.
12
00:01:32,480 --> 00:01:45,650
Very interesting things is that if you have two viable which are numerical variables, you can use all
13
00:01:45,740 --> 00:01:52,670
the operation between numbers that we have seen before with the variable.
14
00:01:52,700 --> 00:02:01,040
For example, if I want to have X plus y, if I can do using the Plus operator.
15
00:02:01,340 --> 00:02:03,140
So it is very easy.
16
00:02:04,940 --> 00:02:14,030
Now we are going to create a f string because in their previous video, I have said that.
17
00:02:17,400 --> 00:02:27,960
Before the variable assignment video, the string is not really important, so now we are going to see
18
00:02:27,960 --> 00:02:29,430
the power of the.
19
00:02:30,960 --> 00:02:32,700
So I tread.
20
00:02:34,650 --> 00:02:38,640
A date variable using.
21
00:02:41,430 --> 00:02:46,890
Attaching a simple string, I carried a price.
22
00:02:48,120 --> 00:02:54,600
And now I will create a new information using f string.
23
00:02:55,080 --> 00:03:06,960
So recreate a nav stream we put, for example, Tesla, and now we want to put the price of Tesla
24
00:03:10,500 --> 00:03:11,760
at date.
25
00:03:14,990 --> 00:03:15,390
That's.
26
00:03:18,020 --> 00:03:34,070
So if I would print so we can see that we have the value of this barrels in the string in full, and
27
00:03:34,070 --> 00:03:45,020
the really interesting thing is that later when you work with, for example, real time data, this
28
00:03:45,410 --> 00:03:50,180
variables will change each day, for example.
29
00:03:50,660 --> 00:03:50,990
And.
30
00:03:53,300 --> 00:04:05,660
They will change automatically, so this string is always true and you don't need to change anything.
31
00:04:06,740 --> 00:04:14,960
So frank little if I change the price automatically, the four string will change also.
32
00:04:15,290 --> 00:04:22,940
So it is very, very interesting and really important to master to illustrate the Boolean case.
33
00:04:23,480 --> 00:04:28,460
I want to use a little example, for example.
34
00:04:31,160 --> 00:04:42,140
Hypothetically, you have an algorithm and it works, so each day you want to run, you are going to
35
00:04:42,140 --> 00:04:50,540
take some orders, but you can take orders only if the market is open.
36
00:04:50,960 --> 00:05:00,500
And we have only two different keys, which our market is open and market is not open.
37
00:05:00,980 --> 00:05:11,390
So to see if the market is open or not, we are going to use a logical operation and stole the result
38
00:05:11,630 --> 00:05:13,400
in a Boolean variable.
39
00:05:13,430 --> 00:05:16,370
So, for example, now it is.
40
00:05:20,850 --> 00:05:24,470
One p.m. PDT.
41
00:05:25,620 --> 00:05:35,790
So we need to see if the market is open or not, and the market is open.
42
00:05:39,690 --> 00:05:40,050
If
43
00:05:43,650 --> 00:05:57,420
time is greater than eight a.m. end time, it must be also longer than seven p.m..
44
00:05:59,430 --> 00:06:00,120
And if?
45
00:06:01,260 --> 00:06:01,620
We.
46
00:06:03,220 --> 00:06:17,230
Display the market open Bible is true because this error is contained, meaning it by eight a.m. and
47
00:06:17,230 --> 00:06:18,550
seven p.m..
48
00:06:18,880 --> 00:06:23,920
If I put, for example, eight p.m..
49
00:06:26,370 --> 00:06:39,360
We have, as a result, force, because, OK, that is time, so it is greater than 8:00 a.m. but isn't
50
00:06:39,970 --> 00:06:53,690
lower than 7:00 p.m. So variable is the most, I think, important thing when you could.
51
00:06:53,700 --> 00:07:01,800
So it is very important to muster it and to see again this video.
52
00:07:02,040 --> 00:07:14,040
If you notice when we come through a table with this notion and even go on YouTube, for example, to
53
00:07:14,040 --> 00:07:21,480
see over videos because it is really the main points of all programmation language.
5122
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.