0% found this document useful (0 votes)
7 views

Python Introduction

Uploaded by

abiwakilhicham1
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views

Python Introduction

Uploaded by

abiwakilhicham1
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Python Programming Language

• High-level and Cross-platform 1 for i in range(10):


2 print(i)
• Indentation Based
• Interpreted 1 class Point:
– Interpreter vs Compiler 2 def __init__(self, x, y):
– Parse 3 self.x = x
– Translate into bytecode 4 self.y = y

• Object oriented
1 x = 0
• Garbage-collected 2 x = 'Hello World!'

• Dynamically typed 3 x = True

1
Python Installation
• https://www.python.org/downloads/
• ☑ Add Python 3.X to PATH
• Environment Variables
– System Variables
– User Variables
– Path
– C:\Users\‹HASCOET›\AppData\Local\Programs\Python\Python3‹9›

> python --version > pip --version


Python 3.6.X > python -m pip --version
Python 3.7.X
Python 3.8.X > pip show ‹module›
Python 3.9.X > python -m pip show ‹module›
Python 3.10.X
2
Python Libraries
# Generic # Topological Data Analysis
pip install numpy pip install ripser
pip install pandas pip install persim
pip install scipy
# Computer Vision
# Machine Learning pip install opencv-python
pip install scikit-learn
# Neural Network
# Plot pip install tensorflow
pip install matplotlib
pip install plotly

3
Integrated Development Environment (IDE)
• Write code • Visual Studio Code
• Code Formatting • JetBrains PyCharm (Community)
• Syntax Highlighting • Spyder
• Auto Code Completion • Atom, Sublime
• Regexes Support in Code Search • Notepad, TextEdit
• Code Inspection and Debugging • GNU Emacs, Vim
• Static Code Analysis
• Git Integration

4
Python Extension Python Interpreter Path

Visual Studio Code

Open Folder & File Run Python Script

You might also like