30.01.2020 Views

Fundamentals Of PythonLearn Python Programming Fundamentals: A Beginner’s Guide [Updated 2020]

Python is one of the powerful, high-level, easy to learn programming language that provides a huge number of applications. Some of its features, such as being object-oriented and open source, having numerous IDE’s, etc. make it one of the most in-demand programming languages of the present IT industry. According to TIOBE index, as of January 2020, Python is one of the popular programming languages. By looking at the popularity of this programming language, many IT professionals, both beginners as well as experienced alike, are willing to build their career as a Python developer.

Python is one of the powerful, high-level, easy to learn programming language that provides a huge number of applications. Some of its features, such as being object-oriented and open source, having numerous IDE’s, etc. make it one of the most in-demand programming languages of the present IT industry. According to TIOBE index, as of January 2020, Python is one of the popular programming languages. By looking at the popularity of this programming language, many IT professionals, both beginners as well as experienced alike, are willing to build their career as a Python developer.

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

The output of this programming will be as below:

10

10

10

Here all the three variables a, b, c have been assigned a single value i.e. 10.

2. Assigning multiple values to multiple variables

a, b, c = 10, 20, 30

print (a)

print (b)

print (c)

# prints the values assigned to variable a

# prints the value assigned to variable b

# prints the value assigned to variable c

The output for the above program will be as follows:

10

20

30

Here the integers objects with values 10, 20, 30 are assigned to variables a, b, c respectively.

Variables

Values

a 10

b 20

C 30

Python Data Types

Each value of Python has a data type. Variables can hold values of different data types. Python

allows the developers to check the type of the variable used in the program. For this, it

provides the developers a function called type(). This function returns the type of the

variable passed.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!