Topic 4: three control flow statements a programmer must know.

In topic 4, you will learn three control flow statements, that help you get the outcome with more efficient codes.

First, we need to know the structure of a compound statement!

A compound statement consists of one or more clauses.

What are clauses?

A clause consists a header and a suite.


Now let’s dig into the must-known control flow statements!

1. if statement

if...elif...else statement is used for conditional execution. There can be zero or more elif…

Topic 3: two data types — sequence & set

In this topic, you will learn sequence data types and set data type, all being used to store items!

Sequence data types:

Besides numbers, Python can also manipulate strings in several ways. Strings can be enclosed in single quotes ('...') or double quotes ("...") with the same result.

Strings can be glued together with the + operator, and repeated with *:

Topic 2: three data types — Dictionary, Numeric and Boolean

Learning through topic 1, we know how to use Python as a calculator and to assign variables. Now let’s dig into built-in data types in Python!

In topic 2, we introduce three data types: Dictionary, Numeric and Boolean

Following are the built-in data types in Python:

Numeric data type:

Int contains positive or negative whole number.

2. Float

Float contains real numbers with decimal point.

3. Complex

Complex contains (real number) + (imagine number)

Topic 1: Let’s turn complex financial numbers into easy codes and graphs!

Python is an easy to learn, powerful programming language. Its efficient high-level data structure helps us efficiently analyze BIG DATA. The following examples are coded with Jupyter Notebook.

Queenie Peng

Finance + Data Science

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store