You are on page 1of 17

Introduction to Python

Programming
Objectives

• Know the basic outline of Python


language, its key features,
application areas, features, and
limitation.
• Run Python code on the IDE
presented
• Include comments to maintain
good programming skills habits.
Introduction
• Python is a high-level programming language, created in 1989
• One of the most popular programming languages
• AI and machine learning, Data analytics, Data visualization,
Programming applications, Web development, Game development,
Language development, Finance, SEO.
Introduction (cont)
Introduction (cont)
Importance of Python
• User friendly
• Freeware
• High-level programming language
• Platform independent
• Dynamically typed
• Procedural and object-oriented
• Interpreted
• Extensible
• Vast library
Limitations of Python
• Instead of a compiler, Python executes with the
help of an interpreter, which results in a slight bit
slowdown of the execution process.
• It is not recommended for mobile platforms.
How to Run Python
Can be run in the following ways:
• From the Command Line
• From the Text Editor
• From the Integrated Development Environment
Internal Working of Python
Step1 :
The interpreter reads the Python code or instructions. Then, it verifies the
syntax and formatting of instructions. If it finds any errors, it immediately
stops the translation and displays an error message.
Step 2:
If there is no error, then the interpreter translates it into the equivalent
form in low-level language called byte code.
Step 3:
Byte code is then transmitted to the Python virtual machine and then the
output is displayed.
Comments
• Comments are beneficial while writing a program. It tells people what
the source code is about.
• Comments are written for a better understanding of the program.

# Object of a student stud = Student("Gloria",


stud = Student("Gloria", "Cebu", "CS")
"Cebu", "CS") print(stud)
print(stud) # stud.course = "IT"
stud.course = "IT" # print(stud)
print(stud)
Installing Python

It works with various operating systems Windows,


Linux, macOS, etc. If you want to work in Python, it
needs permission from the Python interpreter. Python is
available on the website Python.org .
1. Select a python version, and different versions, e.g., 32 bit, 64 bit

2. Run the installer


Installing IDE using PyCharm

IDEs most often consist of a source code editor,


build automation tools, and a debugger. Most
modern IDEs have intelligent code completion. In
this article, you will discover the best Python IDEs
currently available and present in the market.
1. PyCharm is available on
https://www.jetbrains.com/pycharm/

2. Select and download the Community Edition, and install


Next: Basic Python Progamming

You might also like