Python Variables - LearnHowToCode SarkariResult.com Interview Questions and Answers LearnHowToCodeOnline
Python Variables

Python Variables

Python Variables

Python is the programming language which is very easy to use and this language can be used for various types of applications. Nowadays most of the programmers prefer to use this language for the purpose of creating various codes.
There are different python variables - the variable is the place where the memory location of the data is stored. When the variable is stored this essentially means that there is a particular space which is allocated for that particular memory. Now let us see how can assign values to the variables.
In the case of python programming, there is no need to specifically mention the variables in this language. When the value is assigned to a particular variable then that variable is automatically declared. The assignment is done with the help of the equal operator.

Besides this you can also have multiple assignment variables - this can be done all at a time. There are basically two ways to assign the values in Python assigning single to multiple values and the other assigning multiple to multiple values.
The assignment is done using the equal (=) operator.
variable = a, name,post,salary
values= 20, rahul,Developer,23000
a=20;
name='Rahul'
post='Developer'
salary=23000
print a
print name
print post
print salary
Output
>>>   
20
Rahul
Developer
23000
>>> 
Most important this print statement line :->>> print a; print name; print post; print salary;

About Mariano

I'm Ethan Mariano a software engineer by profession and reader/writter by passion.I have good understanding and knowledge of AngularJS, Database, javascript, web development, digital marketing and exploring other technologies related to Software development.

0 comments:

Featured post

Political Full Forms List

Acronym Full Form MLA Member of Legislative Assembly RSS Really Simple Syndication, Rashtriya Swayamsevak Sangh UNESCO United Nations E...

Powered by Blogger.