Week 1P - Introduction to Python Programming
Week 1P - Introduction to Python Programming
Practice
Why Python Programming?
2
Readable
Features
of
Large Standard Python Free
Library
Exception
Open Source
Handling
What Can You Do with Python?
4
Scripting Game
Development
Data
Analysis
Machine
Learning
Web
Development
Python IDEs and Code Editors
5
Jupyter
IDLE
Notebook
Spyder Atom
Visual Studio
Sublime Text
Code
Eclipse
PyCharm
Advantages of learning Python
6
Python is Interpreted
• Python is processed at runtime by the interpreter. You do not need
to compile your program before executing it. This is similar to PERL
and PHP.
Python is Interactive
• You can actually sit at a Python prompt and interact with the
interpreter directly to write your programs.
Python is Object-Oriented
• Python supports Object-Oriented style or technique of
programming that encapsulates code within objects.
Python is a Beginner's Language
• Python is a great language for the beginner-level programmers and
supports the development of a wide range of applications from
simple text processing to WWW browsers to games.
Some companies Using Python
7
Uber
ANACONDA (Python distribution)
8
Anaconda is a distribution of
the Python and R programming Anaconda Navigator is a
languages for scientific desktop graphical user interface
computing (data (GUI) included in Anaconda
science, machine distribution that allows users to
learning applications, large-scale launch applications and manage
data processing, predictive conda packages, environments
analytics, etc.), that aims to and channels without
simplify package using command-line commands.
management and deployment.
Installing on Windows
9
https://docs.anaconda.com/anaconda/install/mac-os/
ANACONDA IDE
11
Jupyter Notebook
12
Best Programming Practices
13
Consistent Indentation
Best Programming Practices
15
• The name of the variable cannot start with a number. For example: 9num
is not a valid variable name.
• Variable name is case sensitive in Python which means num and NUM are
two different variables in python.
Python String Variable
18
Enter the code in the cell block and press the Shift + Enter key
Python Data Types
19
These keywords have a special meaning and they are used for
special purposes in Python programming language. For example
– Python keyword “while” is used for while loop thus you can’t
name a variable with the name “while” else it may cause
compilation error.
goto: https://github.com
• Log into your GitHub
Week_1/practice_2.pynb
Class Project
27