• []
,Pause video for highlighted transcript with
text, So keep your strings with your
strings, your integers with your integers,
and your floats with your floats, and you
shouldn't get in too much of a tangle.,
,marked from 4 minutes 27 seconds till 4
minutes 35 seconds
So keep your strings with your strings,
your integers with your integers, and your
floats with your floats
In Python, text in between quotes --
either single or double quotes -- is a string
data type.
[]
•
,
to convert between one data type and another, we call a
function with the name of the type we're converting to.
Behind the scenes the computer is busy
automatically converting our integer seven into
a float seven. This lets Python then add
together the values to return results that is
also a float. We call this process, implicit
conversion. The interpreter automatically
converts one data type into another.
[x]RETURNING NONE
, •
,Pause video for highlighted transcript with
text, So keep your strings with your
strings, your integers with your integers,
and your floats with your floats, and you
shouldn't get in too much of a tangle.,
,marked from 4 minutes 27 seconds till 4
minutes 35 seconds
So keep your strings with your strings,
your integers with your integers, and your
floats with your floats
In Python, text in between quotes --
either single or double quotes -- is a string
data type.
[]
•
,
to convert between one data type and another, we call a
function with the name of the type we're converting to.
Behind the scenes the computer is busy
automatically converting our integer seven into
a float seven. This lets Python then add
together the values to return results that is
also a float. We call this process, implicit
conversion. The interpreter automatically
converts one data type into another.
[x]RETURNING NONE
, •