Python-Tutorials
This repo is only my training time to starting learning python from beginning until now, it can be updated anytimes and add new code for training purpose.
CPython --> written in C
Python Implementations
Jython --> written in Java
IronPython --> written in .NET
pypy --> written in RPython
Why Python is so Powerful because using in following technologies:
- Web Frameworks
- Scientific Computing
- Image Processing
- Databases
- Build Systems
- Documentation
- Persistence
- Math
- Operating System
- Crypotography
- Concurrency
- Web Protocols
- Open Source
- Popular
- EveryWhere
- Accessible
Course Overview
- Getting Started
- Strings and Collections
- Modularity
- Built-in Types and the Object Model
- Collection Types
- Handling Exceptions
- Comperhensions, Iterables, and Generators
- Defining New Types with Classes
- Files and Resource management
- Shipping Working and Maintainable Code
Note:
In Python2.7 :
print 'Something'
raw_input()
=============================
/ called class division
/> 3/2
/> 1
In Python3+ :
print('Something')
input()
=============================
/ called single division
/> 3/2
/> 1.5
create virtualenv with python version
mkvirtualenv xmlenv --python=/usr/bin/python3.5
mkvirtualenv xmlenv --python=/usr/bin/python3.6
mkvirtualenv xmlenv --python=/usr/bin/python3.7
Install venv with specific python version
sudo apt install python3.7 python3.7-dev python3.7-venv -y
sudo apt install python3.6 python3.6-dev python3.6-venv -y
sudo apt install python3.5 python3.5-dev python3.5-venv -y
sudo apt-get install build-essential libssl-dev libffi-dev python-dev
sudo apt-get install build-essential libssl-dev libffi-dev python3-dev
sudo apt-get install build-essential checkinstall