Section 1
##### Getting Started with Python Programming

Section 2
##### Introduction to Anaconda

Section 3
##### Data Structure and Conditional Executions

1

Sequence Structures

2

List

3

Tuple

4

Dictionaries in Python

5

Key Value Pairs

6

Different types of operators

7

Mutability

8

Different mutability for different sequence structures

9

String Functions

10

Indexing and slicing

11

Control Flow tools

12

If, Else, Elif

13

The Continue and Break statement

14

While Loop

Section 4
##### Working with Different Functions

1

Built in functions

2

Different functions and their uses

3

Using different functions

4

Built in modules

5

Executing functions using libraries

6

User defined functions

7

Lambda Keyword

8

Map() function

9

Filtering

10

Reduce()

11

Default Parameters

12

Multiple Parameters

13

Local Variables

14

Global Variables

15

List Comprehension

Section 5
##### Expressions and Exceptions

Section 6
##### Introduction to the Data Science Library

**Introduction**

Numbers are extremely common in programming. They are used to represent things like screen size dimensions, geographic locations, money and points, the amount of time that passes in a video, positions of game avatars, and colors through assigning numeric codes.

We’ll be working with two of Python’s most used numeric data types, integers and floats:

• Integers are whole numbers that can be positive, negative, or 0 (…, -1, 0, 1, …).

• Floats are real numbers, they contain a decimal point (as in 9.0 or -2.25).

This tutorial will go over operators that can be used with number data types in Python.

**Operators**

An operator is a symbol or function that indicates an operation. For example, in math the plus sign or + is the operator that indicates addition.

In Python, we will see some familiar operators that are brought over from math, but other operators we will use are specific to computer programming.

Here is a quick reference table of math-related operators in Python.

**Addition and Subtraction**

In Python, addition and subtraction operators perform just as they do in mathematics. In fact, you can use the Python programming language as a calculator.

Let’s look at some examples, starting with integers:

print(1 + 5)

Output

6

Instead of passing integers directly into the print statement, we can initialize variables to stand for integer values:

a = 88

b = 103

print(a + b)

Output

191

Because integers can be both positive and negative numbers (and 0 too), we can add a negative number with a positive number:

c = -36

d = 25

print(c + d)

Output

-11

**Multiplication and Division with float values**

k = 100.1

l = 10.1

print(k * l)

Output

1011.0099999999999

When you divide in Python 3, your quotient will always be returned as a float, even if you use two integers:

m = 80

n = 5

print(m / n)

Output

16.0

Python 3’s approach provides a fractional answer so that when you use / to divide 11 by 2 the quotient of 5.5 will be returned. In Python 2 the quotient returned for the expression 11 / 2 is 5.

Python 2’s / operator performs floor division, where for the quotient x the number returned is the largest integer less than or equal to x. If you run the above example of print(80 / 5) with Python 2 instead of Python 3, you’ll receive 16 as the output without the decimal place. In Python 3, you can use // to perform floor division. The expression 100 // 40 will return the value of 2. Floor division is useful when you need a quotient to be in whole numbers.

**Modulo**

The % operator is the modulo, which returns the remainder rather than the quotient after division. This is useful for finding numbers that are multiples of the same number, for example.

Let’s look at the modulo in action:

o = 85

p = 15

print(o % p)

Output

10