Python Crash Course.
Agenda.
1-What is Python?
Python is a general purpose interpreted, interactive, Object-oriented, and high-level programming
language.
Interpreted: A language that is read in it’s raw from and executed statement at a time without being
first compiled. (You do not need to compile your program before executing it)
Interactive: Use the Python prompt and interact with the interpreter directly to write your programs.
2-Environment Setup
3-Basic Syntax/ fonts: Consolas, Monaco, Chalkboard
Docstrings/Triple Quotes.
Comments in Python/
Multi-Line Statements/
Multiple Statements on Single Line./
Just like simple English.
Following two methods for running the python program.
Run a python script as file/ Script Mode Programming
C:\users\your name>python [Link]
Python Execution with the shell (Live Interpreter)/ Interactive Mode Programming
Open cmd type python press enter key you will enter into Live Interpreter Mode. Now You Write your
python script code and see result on same screen.
4- Identifiers/variable/ Variable Types/ Assigning Values to Variables/ Standard Data types/ Multiple
Assignment/ Data Type Conversion/Examples
5- Reserved Words/ Escape Characters
6- Multiple Statement Groups as Suites.
7- Python Numbers/ Number Examples.
8- Python Strings/Example./ Quotation in Python.
9-Python Lists /Examples.
10- Python Tuples/Examples.
11-Python Dictionary/Examples.
12- Python – Basic Operators/Examples
13- Decision Structures/Examples/ Lines and Indentation/ Using Blank Lines.
14- Loops/Examples
15-Functions/Examples
16- File Handling.
17- OOP with Python.
18 – Little bit about Machine learning.