Introduction to python
No account is required. Learn the material, try the examples, and mark it complete locally when you are ready to move on.
The intention here is to teach the basics of python programming language in a beginner friendly way. So, by no means will these tutorials be comprehensive. But I do hope these basics will help readers understand the fact that we want to use python as a tool for machine learning and not as a programming language.
Contents
Data Types
- Integer: 1, 2, 10
- Decimal numbers: float: 1.0, 2.1, 10.5
- Boolean: True, False
- Nonetype: Null values
- String: "It is some character sequence"
Typecast
- Implicit type casting
- Explicit type casting
Operators
- Arithmetic
- Assignment
- Comparison
- Logical
- Identity
- Membership
- Bitwise
Data Structures
- Lists
- Tuples
- Dictionaries
- Set
- Chained Sequences: lists, tuples, chained dictionaries
- Indexing
Conditional statements
- Code block
- if
- if else
- if elif else
Loops