Variables and Data Types | Python Tutorial - Day #6
In Python Programming Language 'Variables' are just like containers just like you have in
your kitchen In which you store lentils , flour & rice etc In Python programming language
'variables' can be 'types ' of everything' Just like that there are 'Types ' in Python which we
refer as 'Data Types' The data is stored in the memory. Python has 4 types of 'Variables ' ' ' a '
' b ' ' c ' & 'd' The Python program is designed to save a number and print a number. If I write '
b = ' Harry '' so directly the content of 'Harry ' will be printed. Python has rules in Python that
require double-quotes to be used to represent a 'Data Type' 'Data Type ' specifies the type of
value that a 'Variable ' can store. This is required in programming to perform operations For
eg. you 're a living being. And there 's a dog , he 's also a dog. And an ant is another living
being But we all are different kind of living beings.
Python has some built-in 'Data Types ' in Python. The first 'Data Type ' is 'Int ' 'Float ' &
'Complex' If I change ' a ' to 1. 1 so its type will be 'Float' And if I tweak it like. . . . If I write it
like. 8+2i '' so it 'll become a 'Com Complex ' number. Python Programming '' enclosed in
double-quotes ( `` `` ). . . . . . . . . These are of 'String ' type. Numbers can be of 'Integer ' type
or 'Floating Point Number' or 'Complex ' type And along with that if we talk about 'String' ''
Hello World !! ! ! ! `` , '' Python Programming'' enclosed in. double quotes ( ``) ) in +1 or +2. I
just want to show you that. . It has become a 'Com Complex ' number. People confuses a lot
in mutable & immutable. Immutable means they can not be changed. 'Mutation ' means the
occurrence of changes. 'Immutable' means changes can be made. 'Mutable' means mutable
and immutable. People confuse a lot with mutable or immutable. I do n't remember any
complex word right now.
Everything in Python is an 'Object' Yes ! Everything 'Dictionary ' is an object If you create a.
'Boolean ' so it's an object of class 'Int' That 's why when we printed it , we saw that. . . The
type of a is < class 'complex ' It 's the 'Object ' of this class' I 'll explain more about dictionary
in the upcoming videos.
In Python Programming Language 'Variables' are just like containers just like you have in
your kitchen In which you store lentils , flour & rice etc In Python programming language
'variables' can be 'types ' of everything' Just like that there are 'Types ' in Python which we
refer as 'Data Types' The data is stored in the memory. Python has 4 types of 'Variables ' ' ' a '
' b ' ' c ' & 'd' The Python program is designed to save a number and print a number. If I write '
b = ' Harry '' so directly the content of 'Harry ' will be printed. Python has rules in Python that
require double-quotes to be used to represent a 'Data Type' 'Data Type ' specifies the type of
value that a 'Variable ' can store. This is required in programming to perform operations For
eg. you 're a living being. And there 's a dog , he 's also a dog. And an ant is another living
being But we all are different kind of living beings.
Python has some built-in 'Data Types ' in Python. The first 'Data Type ' is 'Int ' 'Float ' &
'Complex' If I change ' a ' to 1. 1 so its type will be 'Float' And if I tweak it like. . . . If I write it
like. 8+2i '' so it 'll become a 'Com Complex ' number. Python Programming '' enclosed in
double-quotes ( `` `` ). . . . . . . . . These are of 'String ' type. Numbers can be of 'Integer ' type
or 'Floating Point Number' or 'Complex ' type And along with that if we talk about 'String' ''
Hello World !! ! ! ! `` , '' Python Programming'' enclosed in. double quotes ( ``) ) in +1 or +2. I
just want to show you that. . It has become a 'Com Complex ' number. People confuses a lot
in mutable & immutable. Immutable means they can not be changed. 'Mutation ' means the
occurrence of changes. 'Immutable' means changes can be made. 'Mutable' means mutable
and immutable. People confuse a lot with mutable or immutable. I do n't remember any
complex word right now.
Everything in Python is an 'Object' Yes ! Everything 'Dictionary ' is an object If you create a.
'Boolean ' so it's an object of class 'Int' That 's why when we printed it , we saw that. . . The
type of a is < class 'complex ' It 's the 'Object ' of this class' I 'll explain more about dictionary
in the upcoming videos.