Python Intro

Python Intro:

Python was created by Guido van Rossum, and released in 1991.

Python is a great object-oriented, interpreted, and interactive programming language.

Python allows you to split your program into modules that can be reused in other Python programs. 

It comes with collection of standard modules that you can use as the foundation of your programs.


Python Download Link:

Python can be download from "https://www.python.org/downloads/"

IDE:

PyCharm has been considered the best IDE for python developers.

PyCharm can be download from "https://www.jetbrains.com/pycharm/download"

(Python actually comes with a limited IDE called "Integrated DeveLopement Environment (IDLE)" but still developers preferred to use third party IDE (Eg: Pycharm) to create useful applications with any ease).


Inside Python:

Indentation: Indentation (Space), is important in python programming, 

Colon(:), : symbol is important in python programming,

Functions: We can create and use functions in python.


Contents:

Primitives - Numbers, Strings, Booleans

Collections - Lists, Dictionaries, Sets, Tuples

Control Statements - if & elif, loops, etc

Other topics - Range, in, output, input.


Data Types in Python:

Numeric:

Numerical data type holds numerical value. 

Following are the sub-types of numerical data type:

Integers - Integers are used to represent whole number values

Float - Float data type is used to represent decimal point values

Complex Numbers - Complex numbers are used to represent imaginary values

Boolean - Boolean is used for categorical output, since the output of boolean is either true or false


String: 

Strings in Python are used to represent Unicode character values. 

Python does not have a character data type, a single character is also considered as a string. 

We declare the string values within single quotes or double-quotes. 

Strings are immutable in nature.


List:

A list is ordered and changeable, unlike strings. We can add duplicate values as well.


Tuple:

Tuple is an ordered data structure whose values can be accessed using the index values.

It can have duplicate values. To declare a tuple, we use the round brackets. 

A tuple is a read-only data structure and you cannot modify the size and value of the items of a tuple.


Set:

A set is a collection that is unordered and doesn't have any index. It does not allow duplicates.


Dictionary:

A dictionary is just like any other collection array in Python. But they have key-value pairs.

A dictionary is unordered and changeable. We use the keys to access the items from a dictionary.


Popular posts from this blog

Python Libraries

Sample Exercises for Python