background top icon
background center wave icon
background filled rhombus icon
background two lines icon
background stroke rhombus icon

Download "Уроки Python с нуля / #4 – Переменные и типы данных"

input logo icon
Video tags
|

Video tags

переменные в python
типы данных python
python variables
python
питон
python уроки
python для начинающих
python с нуля
уроки python
питон с нуля
гоша дударь python
python tutorial
python tutorial for beginners
пайтон
выучить python
питон уроки
learn python
python programming
Subtitles
|

Subtitles

subtitles menu arrow
  • ruRussian
Download
00:00:01
will learn how to work with variables and also
00:00:03
study the data types that exist in the
00:00:05
Python language, and before starting, I would like to
00:00:08
recommend the site
00:00:09
IT Prager dot com on this site you
00:00:11
will find them for homework and a lot of
00:00:13
other useful information link to
00:00:14
this lesson on the site will be in the description of
00:00:16
this video,
00:00:17
first let's find out what a
00:00:19
variable is, a variable is essentially a memory cell
00:00:22
where we can enter some information and
00:00:24
then we can refer to this information, we can see, we can
00:00:26
change this
00:00:28
information, we can delete this
00:00:30
information, we can It’s easy to display it on the
00:00:32
screen and, in principle, we can do
00:00:34
any other actions with it to
00:00:36
create a variable, we
00:00:38
just need to indicate a name for it and
00:00:41
the name can be anything, the main thing is
00:00:43
not to use special characters like
00:00:45
these symbols, well, you
00:00:47
can call it this way it is
00:00:49
best to call a variable whatever you want, variables according to their meaning,
00:00:52
for example, now I want to create
00:00:53
a variable inside which I will
00:00:55
place a certain number, so
00:00:58
let’s call such a variable now as
00:01:04
number. As a value for this variable, I want to set, for example, the number 5 and so that I can assign a
00:01:07
certain value to this variable value, I must
00:01:09
indicate the equal sign and then simply indicate a
00:01:11
certain value, for example, the number
00:01:13
5, after that you and I understand that we have
00:01:16
created a certain variable, it’s
00:01:18
called what we call a bar, and in this
00:01:20
variable I have a certain
00:01:22
number, this number 5, also here I could
00:01:24
put some other value,
00:01:25
for example minus 5 minus 500, perhaps
00:01:28
just 500 or something like that, let's
00:01:30
first just always
00:01:32
mark the value 5 a little later we will
00:01:34
also study how you can store not
00:01:36
only numbers, but also how you can
00:01:38
store numbers with a dot like it will be possible
00:01:41
to store strings and how it will be possible to store
00:01:43
any other data types that
00:01:46
exist in the Python language a little later, we’ll
00:01:48
look at this with you first, let’s
00:01:50
understand how you can generally work with this
00:01:52
variable after its creation, the first thing you
00:01:55
can probably do is simply output it
00:01:57
on the screen in order to display this variable on the
00:01:59
screen, we can turn to the
00:02:02
print function and just inside this function we
00:02:04
pass the variable itself to you, the
00:02:05
variable number
00:02:07
if we run this, we notice that
00:02:09
we have the number 5, it is right here and is
00:02:11
printed
00:02:12
additionally, of course you can
00:02:13
merge the output here,
00:02:16
for example, here I will have the
00:02:18
result written and then perhaps I will
00:02:20
display the very changes,
00:02:22
again this is all processed here
00:02:23
correctly, in addition to the output, you can also,
00:02:26
of course, change the values ​​of the
00:02:28
variable itself, for example here and indicated
00:02:30
the value 5 and a little later let's perhaps
00:02:33
not even give it here somewhere,
00:02:35
for example here a little later I will change its
00:02:37
value for example here it will already be
00:02:39
written 7 and just a little lower we
00:02:41
will display this change again and
00:02:44
now we will just notice that
00:02:46
we initially displayed the variable with with
00:02:48
the value 5 and then a variable
00:02:50
with the value is entered, everything was processed
00:02:53
correctly, that is, when you create
00:02:55
variables, you can initially
00:02:56
assign one value to it and then during the
00:02:58
execution of the program you can assign
00:03:00
it another value. If necessary, you
00:03:02
can delete the variable;
00:03:04
for this you need to refer to the
00:03:06
directive given or it is completely
00:03:08
deciphered as david and then you
00:03:10
simply indicate a certain change
00:03:12
that you want to delete here
00:03:14
since we are working with a directive, you do
00:03:15
n’t have to write these
00:03:17
parentheses if you write them, there
00:03:19
will be no errors, but they are simply not
00:03:21
superfluous and why add extra
00:03:23
characters if at the moment we try to
00:03:25
run the program and of course we
00:03:27
will get an error the error at the
00:03:30
moment is due to the fact that firstly I
00:03:32
created a variable then I deleted this
00:03:34
variable as it no longer
00:03:35
exists and then I try to access
00:03:38
this variable here and I’m trying
00:03:40
to display its value since such
00:03:42
a change does not exist and we are trying to
00:03:44
access it, and then we get an
00:03:45
error on its own, the errors themselves are not
00:03:48
here in the terminal,
00:03:50
don’t be lazy to read them because they
00:03:53
can be very informative, for example, at the
00:03:55
moment we have it turns out an error
00:03:56
name error what is its name, it
00:03:58
essentially says what is happening
00:04:01
here is that such a variable with
00:04:04
such a name as number is
00:04:06
undefined, while on the fourth
00:04:09
line we are trying to access it, if you
00:04:11
look at the fourth line, this is
00:04:13
really how we have it and what happens is that
00:04:14
we have a variable and for
00:04:16
indefinite because we
00:04:18
defeat it, you deleted it, but at the same time we
00:04:20
are trying to access it at the same time,
00:04:22
if let’s say I write this case where it
00:04:25
is not here, then in this case no
00:04:27
errors will be generated for me drink and
00:04:28
everything was processed correctly and this is already
00:04:31
happening for the reason that look,
00:04:33
initially I created it as a variable, then I
00:04:35
deleted this variable, then I sort of
00:04:37
deleted this variable, but as if by God, I
00:04:40
created this variable again, and again
00:04:42
I display it on the screen,
00:04:43
so in this concept everything
00:04:45
processed correctly, these problems do not
00:04:47
arise
00:04:48
in addition to storing integers as
00:04:50
we have now done, we
00:04:52
can also store variables and any
00:04:54
other values, let's create
00:04:56
a new variable and
00:04:58
let it be called digit,
00:04:59
again the name can be
00:05:01
anything, the main thing is not use
00:05:03
special characters and in this variable
00:05:06
this time I want to set a non-integer
00:05:08
number, that is, no two three four and
00:05:10
so on I want to set for example a
00:05:12
number with a dot, so I can simply
00:05:14
write 4 for example. 5 and this will all
00:05:17
be processed correctly, also after the dot you
00:05:19
can specify many characters, this
00:05:21
again everything will be processed correctly here,
00:05:23
in addition to the fact that we can store
00:05:25
similar numbers, we
00:05:27
can also store certain strings in variables, for
00:05:29
this we will create another
00:05:31
variable let it be called like
00:05:32
word and here I want to place a certain
00:05:34
string as a string, I can interfere with both
00:05:36
single and double quotes, there
00:05:38
will be no difference here,
00:05:41
for example, let's write hello or
00:05:43
what will be more logical and let's better
00:05:44
write the result here and a little lower we
00:05:47
will already be here output
00:05:48
exactly this word variable itself, and
00:05:51
here perhaps let’s even
00:05:52
output digit so that we can just notice
00:05:54
the difference if we run this now,
00:05:56
here it comes down to the result, we
00:05:58
substitute here, as it were, values ​​from
00:06:00
this variable board and also
00:06:02
substitute the value from the
00:06:03
digit variable so we get this
00:06:05
result, which is displayed here,
00:06:07
so we can store in a variable,
00:06:10
firstly, integers,
00:06:11
they can be both positive and
00:06:13
negative, we can also store
00:06:15
numbers with a dot, again, these numbers can
00:06:18
be positive and can also be
00:06:20
negative, then everything will be
00:06:21
processed absolutely correctly, and plus we
00:06:23
can store more strings here in a line,
00:06:26
you can have as many characters
00:06:28
as one character, we can even
00:06:31
write a whole poem here, it
00:06:32
will also be processed normally here,
00:06:34
and besides these of all
00:06:37
data types, there is another
00:06:38
non-standard data type, it is called
00:06:41
Boolean and due to this data type we
00:06:44
can store variables with one of two possible
00:06:46
values, either it will be the value true
00:06:48
or it will be the value false, that is,
00:06:50
true is true crawled is false and similar
00:06:54
values ​​they are often are used in
00:06:56
various checks, for example, there we
00:06:58
can check that if some
00:07:00
variable is taken and goes with the
00:07:02
value true,
00:07:03
that is, if it goes with the value
00:07:04
true, in this case we will execute
00:07:06
one piece of code and if it goes
00:07:08
with the value fall or false, then we
00:07:11
will execute some other piece of
00:07:12
code, that is, at the moment, let’s
00:07:14
still create such a change,
00:07:16
let’s say it will be called
00:07:17
here as a storm and something like that, at
00:07:20
the moment we won’t really use it in any way,
00:07:22
but a little later, when we
00:07:23
study the conditional construction,
00:07:25
we will use this variable there, or rather, we will use this data type
00:07:27
with you, so
00:07:29
what can we put either the
00:07:31
value true, it is written as follows,
00:07:32
or the value false, that is, either
00:07:35
true or false false is falls true
00:07:38
is a corpse if I’ll try to display this on the
00:07:40
screen, then it will all be displayed as
00:07:42
if it were an ordinary line, see here it is
00:07:45
either falls, well, like an ordinary line
00:07:47
before, or here the words true are found, again, like an
00:07:50
ordinary line, at the same time, this is
00:07:53
not an ordinary line, this is not a line at all,
00:07:54
this is exactly is the bull data type
00:07:56
and we can use this type
00:07:59
a little later under different conditions,
00:08:01
for example, we can check if this
00:08:02
variable is significant true, then
00:08:04
accordingly we will execute one
00:08:05
specific piece of code, otherwise we will
00:08:07
execute another specific piece of
00:08:09
code and a couple more words regarding
00:08:12
data types in in the Python language there is no
00:08:14
strict typing, this means that
00:08:16
when creating a variable we do not need to
00:08:18
indicate what type of data will be in this
00:08:20
variable, at the same time in each
00:08:22
variable we have a specific
00:08:24
data type, for example here when we create
00:08:26
an integer we seem to be talking to
00:08:28
you about the fact that this variable comes with a
00:08:31
data type like an integer,
00:08:33
or just shout the abbreviation to it, that is,
00:08:35
an integer
00:08:36
is a special data type that is
00:08:38
responsible for integers,
00:08:40
when we create a number with a dot, we
00:08:43
create a number with the data type fleet when
00:08:45
we we create a string, we create a string data type,
00:08:48
and when we create
00:08:50
some painful variable with you, we create
00:08:52
a variable based on a data type
00:08:53
like bull, all these data types do not clearly
00:08:56
exist here and
00:08:58
it is very, very simple to demonstrate this, let’s say let’s
00:09:01
do it with you let's try to
00:09:03
add another party to our word variable
00:09:06
like something is output as a regular
00:09:08
line and it seems like it should be processed
00:09:10
at the same time if I run this we
00:09:13
will get an
00:09:14
error, as we can see the error
00:09:16
occurs exactly in this line of ours
00:09:18
and the error is related with the fact that we are
00:09:20
trying to add a bull data type to a string,
00:09:23
different data types and, accordingly, their
00:09:25
addition is impossible, that is, output separated by
00:09:28
commas as two different variables is
00:09:30
possible, but adding these two
00:09:33
variables
00:09:34
is simply impossible and exactly the
00:09:36
same thing will happen if we try for example,
00:09:38
add digit quart, again, it
00:09:41
seems logical, yes, you just
00:09:43
add a certain number to the line, which
00:09:46
can also be output as a
00:09:47
specific line, but no, we
00:09:49
also won’t work because,
00:09:52
again, we write to the line here
00:09:54
that this is a page well, or the full name
00:09:57
as string and so we
00:09:59
are trying to add the fleet data type to the string,
00:10:01
which is what we really have and
00:10:03
this is what gives us an error and in
00:10:06
fact, you can deal with this error in
00:10:07
several ways, first of all, of
00:10:09
course, you can do everything here output separated by
00:10:11
commas
00:10:12
is the first option and the second option is
00:10:14
type casting, for example, here I can
00:10:19
convert any number or any string, for example, to another data type, for
00:10:22
example, let's try so that
00:10:24
we have this number, it is displayed
00:10:26
as if it were a regular string, that is, to
00:10:28
this to the number, as if at the beginning and also as if at the
00:10:30
end, these
00:10:32
double or single quotes will be added, thus
00:10:35
from the number this will all turn into
00:10:37
a string,
00:10:38
if by the way you wrote down exactly the number
00:10:40
in this format, then the data type here
00:10:42
would not be fleet, but here it would be if we had a string data type,
00:10:45
by the way, let’s even try
00:10:46
to run this one and we will be able to notice that everything
00:10:49
was processed absolutely correctly, you see
00:10:50
this is the string it no longer
00:10:52
causes us errors, but let’s
00:10:54
still try to do it wrong,
00:10:56
let’s point out what we still have here
00:10:58
it will be exactly the number that will be our fruit,
00:11:00
in this case, an error is still given here
00:11:02
and in order for us to convert the fleet to a string,
00:11:05
you and I must
00:11:06
use a function here
00:11:08
called str, this is a function that takes a
00:11:11
certain number, be it a fleet or an
00:11:14
integer and it converts this number
00:11:16
to a string
00:11:17
if I run this, we notice that
00:11:19
no changes have happened here,
00:11:21
everything was processed correctly, no
00:11:24
errors are caused anymore, at the same
00:11:27
time, let’s try with you
00:11:28
to create another variable,
00:11:30
for example, I’ll call like page to us and this
00:11:34
will be a variable that will contain a
00:11:35
number only this number it will be in the
00:11:38
format of a string
00:11:39
here again the data type of this
00:11:41
variable is exactly like string because
00:11:43
we have double quotes but let’s just
00:11:45
for fun I’ll set single
00:11:46
quotes here so that we remember that there are at
00:11:49
least such ones, yes, so this is
00:11:52
exactly the number for us and now
00:11:54
let’s try to do the
00:11:55
following, maybe this line I’ll
00:11:57
comment out the scan will be but we just
00:11:59
won’t use it and let’s try to
00:12:01
do the following I’ll
00:12:03
assume I
00:12:04
want to add to number I to
00:12:06
I want to add another page to this change, if I
00:12:09
try to run this now, we will
00:12:11
get an error because number is
00:12:14
our integer on easter, we have
00:12:17
string, again, different data types,
00:12:18
so the error is thrown, so
00:12:21
we can process all those who are here
00:12:23
we can simply call another function, it
00:12:25
’s called int and, accordingly, page
00:12:27
he brought us any number to a
00:12:30
string ain’t he does the opposite,
00:12:32
he leads a certain string to a number,
00:12:35
and if we try to
00:12:37
use this function for such a
00:12:39
variable as word then Of course, we
00:12:41
will get an error because in
00:12:43
this variable, well, in principle, we don’t
00:12:45
have a number and there is text here,
00:12:47
so after all, when we try to
00:12:49
convert to it, an error will still be
00:12:50
thrown, but if in this
00:12:53
context we try to run all this,
00:12:55
then of course to process this
00:12:56
correctly, we can notice that to
00:12:58
our number 5 I added another number 5 and
00:13:01
now we got the number 10, everything
00:13:04
was processed absolutely correctly,
00:13:07
besides, for fun, let’s also
00:13:09
try to output world here, of course, that is,
00:13:11
this is our change, of
00:13:12
course, I can output this separated by commas,
00:13:14
in which case all this will be processed
00:13:16
correctly, but suppose I still want to
00:13:18
output it all through the + sign so that I
00:13:21
don’t need to implement this, this is this, this is by
00:13:24
addition, this all needs to be
00:13:26
converted to the string data type,
00:13:29
and so on to do this, I suggest
00:13:31
that we indicate here that we simply call the
00:13:33
page function, and inside this function we
00:13:35
place the addition of these numbers, that
00:13:37
is, after the addition is completed,
00:13:38
we have the page function working,
00:13:41
all this will additionally be
00:13:44
combined with the variable word and
00:13:46
if you run this all, it’s all
00:13:49
absolutely correct here it worked
00:13:51
this way in the Python language there
00:13:53
is no strict typing, that is, there is no
00:13:56
need to explicitly indicate with what
00:13:58
data type we are creating a variable at the same time,
00:14:00
each variable has its own specific
00:14:02
data type the
00:14:03
main data types are the integer fleet
00:14:06
string and also these data types
00:14:08
we have just written down here and it’s
00:14:10
just important for you to remember that if you
00:14:12
try to add an integer to a string
00:14:15
you will always get an error because
00:14:17
these are different data types,
00:14:18
so if you need to add there for
00:14:21
example these value to each other or
00:14:22
vice versa to subtract, then always perform a
00:14:25
data type conversion for this
00:14:27
using functions such as str int and you
00:14:30
can also use a function such
00:14:32
as float on, which
00:14:33
converts to the float data type accordingly, or you
00:14:35
can use a function such as
00:14:37
bull, it allows you to convert to the
00:14:39
data type boole, yes, or rather, to the
00:14:41
bull data type, now let's
00:14:43
try to create something interesting based on the knowledge we have gained.
00:14:45
I want to develop
00:14:48
a program where we will receive
00:14:50
two numbers from the user and then we will
00:14:52
display to the user all sorts of
00:14:54
mathematical operations associated with
00:14:56
these two numbers, so to
00:14:58
get values, I will use a
00:15:00
function such as
00:15:01
input in the last lesson, we already
00:15:03
looked at it, here it will be
00:15:05
written, you see the first number,
00:15:08
for example, something in this spirit will be
00:15:09
written and also let's
00:15:11
write input here again and here we
00:15:14
will already write that enter the second
00:15:15
number if I try to
00:15:18
run the program at the moment in this case 10 on
00:15:20
I can enter as if the first number and I can
00:15:22
enter as if the second number and that’s it and the
00:15:24
program will not end there,
00:15:25
nothing special, it didn’t work out that’s
00:15:28
why we need do so
00:15:30
this is the result that we
00:15:32
get from the user, we need to
00:15:33
store it somewhere,
00:15:34
we will bury it in a certain
00:15:37
separate variable,
00:15:38
so let’s create
00:15:40
a change here, let it be called
00:15:42
one and as a value for this
00:15:44
variable I will I indicate the first one
00:15:47
as the first value received from the
00:15:49
user and I will do exactly the same
00:15:51
for the second variable, that is, I
00:15:53
create 2 for us and here I indicate, as it were, the
00:15:55
same value that we receive from the
00:15:58
user, just below we will
00:16:00
display different results for this
00:16:02
we use prints and here we just
00:16:04
write some text for example
00:16:06
result and also we will additionally
00:16:08
display the result itself first, let's
00:16:10
turn to the first variable
00:16:12
and to it we will add the value of the second
00:16:14
variable also a little lower we will also
00:16:16
display subtraction
00:16:17
division and multiplication of numbers if by
00:16:21
At the moment, we will run it all with you
00:16:23
and enter some numbers, then we will receive an
00:16:26
error with you. The error is
00:16:28
currently due to the fact that every
00:16:30
time you and I receive a
00:16:31
certain value from the user,
00:16:33
this value is a string, that
00:16:36
is, this value comes with a string data type,
00:16:38
so when I try here to sort of
00:16:40
divide one string into another,
00:16:43
of course we get an error
00:16:45
because it’s simply impossible to do this,
00:16:46
so in order for us not to get
00:16:49
errors, we need to either here or
00:16:51
already here when we work with
00:16:53
variables we need to
00:16:55
convert it all to a specific
00:16:57
data type every time,
00:16:58
well, every time here we convert
00:17:00
it all to the integer data type,
00:17:01
and so every change it
00:17:02
will be inconvenient, so let’s do it
00:17:05
right here when we receive data
00:17:06
from the user, we will immediately
00:17:08
convert it to the data type is an
00:17:09
integer like this, in this
00:17:12
case no errors will
00:17:14
arise
00:17:15
if we run the program, everything
00:17:17
will be processed correctly, for example, we enter the
00:17:19
number 5 and also let’s possibly enter the
00:17:21
number two and now we get all the
00:17:24
results here we go on
00:17:27
subtracting 3 division is two and a half and
00:17:29
multiplication goes to 10, everything was processed
00:17:31
correctly, also, if you wish, you
00:17:34
can not only do division and
00:17:36
multiplication here, but you can also do it by
00:17:38
raising to a certain power or
00:17:41
dividing by well with the
00:17:43
remainder of an integer just their number, if
00:17:46
this is also the case, we’ll let you start and
00:17:47
maybe we’ll test it, so we
00:17:49
get the raising goes to a
00:17:52
certain power 5 is raised to the
00:17:54
power 2 we get 25 and also
00:17:57
division occurs here and we
00:18:00
only display the whole part of it, previously
00:18:02
two and a half were displayed here
00:18:04
just the number 2 is already displayed, that is, here you can
00:18:07
perform various mathematical operations that are convenient for you,
00:18:09
in addition,
00:18:12
if you need to perform a certain
00:18:14
mathematical operation related to the
00:18:16
same variable,
00:18:18
then this can be done in several
00:18:19
ways, for example, let’s assume that
00:18:22
we have one variable, I would like to add, let’s
00:18:24
say the number 5, it can be written like
00:18:27
this format it will
00:18:29
work absolutely correctly, but then you can
00:18:31
use a more abbreviated format,
00:18:33
here we simply decree plus equals
00:18:35
and then we add, as it were, a certain
00:18:37
number. Well, if we test this now, let’s say
00:18:39
here we
00:18:41
see the number 11, the number 2, then we notice
00:18:44
the following that the first result is for us
00:18:46
enters the number 8 why this happens
00:18:48
because to the first variable to the number
00:18:50
one we also added the number 5 only it
00:18:53
turned out that here we have six
00:18:55
sixes added 2 well and now we have
00:18:57
8 here, it turned out exactly the same with the
00:19:00
rest of
00:19:01
the results already here in addition to adding here you
00:19:03
can also perform subtraction, this
00:19:05
means that from this variable you
00:19:07
subtract the number 5, also here you can
00:19:10
perform
00:19:11
multiplication and division, or the remainder when
00:19:14
dividing, these are all mathematical
00:19:15
operations that cannot be easily
00:19:17
performed here, and one more point that
00:19:19
I forgot to mention is that in
00:19:22
fact, you can multiply not only by numbers,
00:19:24
but you can also multiply strings, let
00:19:26
’s say we have a string here in it wo
00:19:28
n’t be written high and then we’ll
00:19:30
try to multiply this string, it sounds
00:19:33
illogical but in fact
00:19:34
it’s possible in the Python language do if here I
00:19:37
just try to multiply this line by
00:19:40
about 2, then in that case, well, let’s
00:19:43
see some numbers, then in
00:19:45
that case we will get that this
00:19:46
value of this line
00:19:48
will just be
00:19:49
water on the screen twice, yes, here we are This is
00:19:51
exactly what we got with you: if we multiply by
00:19:54
20 here, then accordingly the value of this
00:19:56
line will be displayed 20 times and another
00:19:58
nuance related to data types here is
00:20:00
when we ssd a certain variable in the
00:20:03
Python language, only this variable
00:20:05
is immediately added to some data type, for
00:20:07
example here I placed the lines and to
00:20:09
this variable and immediately a
00:20:10
data type such as string is added at the same time we
00:20:13
can access this variable
00:20:15
firstly we can set some new
00:20:17
value in this case instead of x and
00:20:19
hello will already be set here, but we
00:20:21
can also set
00:20:22
and another data type if I
00:20:24
put the number 45 here or a number with a dot
00:20:27
or a box data type Gugan Bulgar no it
00:20:30
will still work
00:20:31
absolutely correctly this happens for the
00:20:34
reason that if we are trying to
00:20:35
set a new data type you are a
00:20:37
variable, that is, first we
00:20:39
delete this variable, it is deleted
00:20:41
due to the directives of the to-do directive, and then the
00:20:44
setting and generally
00:20:46
creation of a new variable occurs, and thus
00:20:49
here you can create a variable with
00:20:51
one value,
00:20:52
and a little later you can
00:20:54
set another value with a completely
00:20:56
different data type in the same variable this will
00:20:58
work correctly here at the same time if we are
00:21:00
talking about, for example, some kind of mathematical
00:21:02
operations or there, for example, about the output of
00:21:04
several data types, but all this will
00:21:06
not work on its own, there you will also
00:21:09
need to provide data types,
00:21:10
but this is how we did it, for example here,
00:21:12
that is, you will need to use
00:21:14
functions such as int fleet page or the same
00:21:17
bull function, well, this is where our lesson
00:21:19
comes to an end.
00:21:20
In this lesson, we have studied working with
00:21:22
and variables and also even
00:21:24
got to know them a little in practice in
00:21:26
future lessons we will constantly
00:21:28
work with variables, so if
00:21:30
something was unclear now, don’t
00:21:32
worry, because in subsequent lessons
00:21:34
you will encounter them many times
00:21:36
and calmly study them, and that’s
00:21:39
all I hope you liked the lesson,
00:21:41
if so then not Don't forget to
00:21:43
subscribe to the channel and join our
00:21:45
social networks, all links to them will be in the
00:21:47
description of this video, that's
00:21:48
all for now, see you soon

Description:

Переменные являются важной частью любого языка программирования. В ходе урока мы научимся создавать переменные и выполнять различные действия над ними. Помимо этого мы изучим типы данных что существуют в языке Python. ✅ Полезные ссылки: – Урок на сайте itProger: https://itproger.com/course/python/4 ⏰ Тайм коды: 00:00 - Начало 00:17 - Что такое переменные? 00:36 - Создание переменной 01:55 - Работа с переменной 04:50 - Хранение разных значений 08:10 - Типы данных 10:15 - Приведение типов 14:43 - Работа с пользователем 18:11 - Сокращенные действия 20:00 - Изменение типа данных 21:19 - Заключительная часть ✔ Сообщество программистов: https://itproger.com/ ✔ ------------- Вступай в группу Вк - https://vk.com/prog_life 🚀 Инстаграм itProger: https://www.facebook.com/unsupportedbrowser Группа FaceBook - https://www.facebook.com/unsupportedbrowser Instagram: https://www.facebook.com/unsupportedbrowser Telegram: https://t.me/itProger_official Twitter - https://twitter.com/GoshaDudar - Уроки от #itProger 👨🏼‍💻 - Все уроки по хештегу #itprogerLessons

Preparing download options

popular icon
Popular
hd icon
HD video
audio icon
Only sound
total icon
All
* — If the video is playing in a new tab, go to it, then right-click on the video and select "Save video as..."
** — Link intended for online playback in specialized players