A 03 Introduction To Python Programming
A 03 Introduction To Python Programming
ABC Inc. is planning to explore and work on artificial intelligence projects. The
organization is currently struggling to choose the right programming language for
their projects and to keep functionality, scalability, and efficiency as priority
factors to be maintained along with a better developer experience.
Python is chosen as the programming language for all prospective projects
because it is simple, secure, scalable, and rich in built-in libraries.
In this lesson, we will explore the following:
• What is Python and its advantages
• Installation of Python
• Python identifiers, indentations, and comments
• Execution of Python programs
Introduction to Python
Discussion
Python
Python is a widely-used programming language that was conceived in the late 1980s.
Python was invented by It is named after the It is now maintained It is derived from
Guido Van Rossum (CWI, BBC comedy series by the Python ABC, Modula-3,
Amsterdam). “Monty Python's Flying Software Lisp, and “C “
Circus”. Foundation (PSF). languages.
Python: Definition
YouTube
Python is primarily used to construct the well-known YouTube video-sharing
system.
Google
Python is being extensively used in Google’s web search system.
DropBox
The server and client’s software of DropBox is primarily coded in Python.
Python: Industrial Use Cases
BitTorrent
The peer-to-peer file-sharing system started off as a Python program.
NASA
Python is being used at NASA for specific programming tasks.
Netflix
Python is used through the "full content life cycle,” at Netflix.
Python
• What is Python, and why was it introduced when there were other
languages?
Answer: Python is a widely-used programming language that was conceived
in the late 1980s. Python is a portable, free, open-source, powerful, and
compatible language, which makes it better than other programming
languages.
You are a data scientist and are supposed to teach the trainees to install
Python in everyone's system. However, a few of them are facing issues with
the installation. You need to guide the team to install Python using both
methods.
The trainees must install Python in any one of the two methods and share
the output after installation.
Python: Installation
Specific platform
Recommended
Python: Installation
Step2.2: Anaconda file distribution system consists of all the different installers; click on the
required installer
Assisted Practice: Installation of Python
Duration: 5 mins
Tasks to perform:
Duration: 20 minutes
• What is an IDE?
• Is Jupyter notebook an IDE?
Python: IDE
PC
Top
Python
IDEs
y
Image source: https://www.javatpoint.com/python-ides
Python: Interpreter
Python can be accessed through the command prompt on the Windows OS and the terminal
window on the Mac OS.
Windows Mac
Python: Shell
Windows Mac
Python: Shell
Windows Mac
Python: Shell
Windows Mac
Python: Jupyter
Jupyter is a project and a community to create open-source software, open standards, and
services for interactive computing across dozens of programming languages.
The Jupyter lab can be used to access Python and has the below features:
jupyter-lab
Python
Duration: 20 minutes
• What is an IDE?
Answer: An integrated development environment (IDE) is a software suite
that consolidates the tools required to write and test software.
Objective: In this demonstration, we will learn how to write and execute a simple python program
Tasks to perform:
2. A Python program can be executed as a batch file where a python file is created on a
code editor, saved using the “.py” file extension, and then run on the command line.
Python Programming Features
Discussion
Python
Duration: 20 minutes
A Python identifier is a name used to identify a variable, function, class, module, or another object.
There are few identifier naming rules which are as follows:
An identifier cannot start with a digit, Keywords like global, and class cannot be
and it can be of any length. used as identifiers.
Correct Syntax
Duration: 20 minutes
C. James Gosling
C. James Gosling
A. Flexible
B. Easy to use
C. Readability
A. Flexible
B. Easy to use
C. Readability
Python aids in cross-platform compatibility, uses a minimal amount of code to complete tasks, and
places a strong emphasis on readable code.
Knowledge
Check Python code can be written in any text editor and saved using the _____ extension in the
3 system.
A. .pytxt
B. .python
C. .py
A. .pytxt
B. .python
C. .py
Python code can be written in any text editor and saved using the “.py” extension in the system.
Thank You