You are on page 1of 19

1

WWW.PENTALOG.COM
Install Python 3.x

Windows
download python from - https://www.python.org/downloads/

Debian/Ubuntu Linux
sudo apt-get update
sudo apt-get install build-essential
sudo apt-get install python3 python3-pip python3-dev
macOS
install Homebrew - https://brew.sh
brew install python3

WWW.PENTALOG.COM
Python Interpreter (REPL)

WWW.PENTALOG.COM
Python Interpreter (IPython)

WWW.PENTALOG.COM
Python Coding Style (PEP8)
https://www.python.org/dev/peps/pep-0008/

4 spaces indentation
79 characters per line
spacing = very + + important

lower_case_with_underscores
ClassName
_single_leading_underscore
__double_leading_underscore

WWW.PENTALOG.COM
Python Text Editors

WWW.PENTALOG.COM
Python Text Editors & IDEs

Notepad++
Sublime
Atom Vim
Emacs

PyCharm
PyDev
Ninja IDE

WWW.PENTALOG.COM
PIP (package manager)

pip install some-package-name


pip uninstall some-package-name

IPython
pip3 install ipython
ipython

youtube-dl
pip3 install youtube-dl
youtube-dl --help
import youtube_dl

WWW.PENTALOG.COM
Python debugger (PDB)

import pdb
pdb.set_trace()

WWW.PENTALOG.COM
Python data types
numbers
string
list
tuple
set
dictionary

10

WWW.PENTALOG.COM
Python basics
if / elif / else
for / for - else
while / while - else
break / continue
import
print()
input()
range()
exit()

11

WWW.PENTALOG.COM
Python sys.argv[]

12

WWW.PENTALOG.COM
GIT
https://git-scm.com

version control system


free and open source
shared repository
branching and merging

13

WWW.PENTALOG.COM
GIT commands
https://git-scm.com/doc

init
clone add
commit
push
pull

14

WWW.PENTALOG.COM
GIT
https://git-scm.com

15

WWW.PENTALOG.COM
GIT Clients

SourceTree
Git GUI
Gitk

16

WWW.PENTALOG.COM
Bitbucket
web-based hosting service for projects
written in Python using the Django web framework

17

WWW.PENTALOG.COM
Q&A

18

WWW.PENTALOG.COM
19

WWW.PENTALOG.COM