Python Complete| Beginner (Scratch) to Advanced (depth, Master) | Python Execution Process, Keywords
Naveen
0:00 / 0:00
Python Complete| Beginner (Scratch) to Advanced (depth, Master) | Python Execution Process, Keywords
155 просмотров · 9 дн. назад
Naveen
53 подписчика
155 просмотров · 9 дн. назад
Today Session will try to understand the below concepts:
1. What is Python?
2. Features of Python
3. Installing Python
4. IDE Setup
VS Code
PyCharm
5. Python Execution Process
6. Interactive Mode vs Script Mode
7. First Python Program
8. Python Keywords
9. Python Identifiers
10. Comments (Single & Multi-Line)
1. What is Python?
Python is a general purpose,object oriented,interpreted,High level programming launguage.
2. Features of Python:
1) 90k+ in built open source libraries we have in python.
2) dynamically typed programming launguage.
3) simple to read / write.
4) syntax simple
3. Installing Python
Windows:
------------------------------------------------
1) Set-ExecutionPolicy Bypass -Scope Process -Force
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072
iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/inst...)
2) choco install python pycharm-community vscode -y
3) python --verion
4) choco --list
Mac:
---------------------------------------------
1) /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Hom...)"
2) brew install python
3) brew install --cask pycharm-ce
4) brew install --cask visual-studio-code
python3 --version
-------------------------------------------------------
4) Python Execution Process
Source Code (.py)
|
v
Lexer (convert code into tokens) a=20
|
v
Parser (syntax checking will happen here)
|
v
Compiler (Converts to Byte code)
|
v
Bytecode (.pyc) (New file will be created under _pycache_ with the same name )
|
v
+------------------+
| Interpreter |
| (PVM) |
+------------------+
|
v
Output
--------------------------------------------------------------
class room program:-
-----------------------------------------------------
'''
This is my first module, in this module I am trying to explain about the keywords.
author:
parameters:
purpose:
'''
print('hello world')
a=20
keyword is a module if you want to know about keywords you can use this module
import keyword as kw
keywords = kw.kwlist
print(keywords)
print(len(keywords))