SlideShare a Scribd company logo
1 of 41
Download to read offline
Faculty Name: Dr. Tanvi Chawla
Subject: Fundamentals of Computer
Programming
Program: BTech (CSE)/BTech Full
Stack Xebia/BTech UX UI/B.Sc.
DS/B.Sc. Cyber/MC
Unit-2
Introduction to Python
Programming & its
Environment
Session Agenda
➢ Session-1
• Python Features
• Local Environment Setup,
• Installing Python, Setting up PATH
➢ Session-2
• Python Syntax, Keywords
• Understanding Variables
• Data Types: Scalar Types
Session Agenda
➢ Session-3
• Sequence Type, Mapping Type, Set Types
• Mutable Types: List, Dictionary, Set
• Immutable Types: Numbers, String, Tuple
➢ Session-4
• Operators: Arithmetic, Assignment, Comparison
• Logical, Identity, Membership, Bitwise
Session Agenda
➢ Session-5
• Basic of String, Manipulating strings,
• Modify Strings, String Concatenation,
• Format – Strings
➢ Session-6
• Escape Characters,
• Inbuilt method of Strings
• Basic of Regular Expressions
Objectives/Key Learning Outcomes
❖ To comprehend why Python is a useful scripting language
for students and developers.
❖ Explore the various methods available for installing
Python.
❖ Learn how to verify that Python has been installed
correctly.
Objectives/Key Learning Outcomes
❖ Understand how to configure environment variables.
❖ Ensure that Python and its associated tools are accessible
from the command line or terminal.
❖ Gain familiarity with common issues that may arise during the
installation process.
Importance of the topics being covered
❑ Understanding the Language
❑ Effective Utilization
❑ Optimized Code
❑ Collaboration and Communication
❑ Adaptability to New Technologies
❑ Staying relevant in the tech industry
Key Concepts and Fundamentals
▪ Syntax and Basic Concepts: Variables, data types
(integers, floats, strings, booleans), operators, and
comments.
▪ Control Flow: Conditional statements (if-elif-else), loops
(for, while), and flow control statements (break, continue,
pass).
Key Concepts and Fundamentals
▪ Functions: Reusable blocks of code performing a specific
task.
▪ Data Structures: Built-in data structures like lists, tuples,
dictionaries, and sets.
Key Concepts and Fundamentals
▪ Modules and Packages: Python files containing reusable
code and directories containing multiple modules.
▪ File Handling: Built-in functions and modules for reading
from and writing to files.
Key Concepts and Fundamentals
▪ Exception Handling: Try-except blocks for catching and
handling exceptions.
▪ Object-Oriented Programming (OOP): Supports the
creation and manipulation of objects.
Key Concepts and Fundamentals
▪ Libraries and Packages: Rich ecosystem of libraries and
packages that extend its functionality.
▪ Virtual Environments: Virtual environments allow you to
create isolated Python environments for different projects.
Background
❑ A high-level, interpreted programming language created by
Guido van Rossum and first released in 1991.
❑ Is easy to read, write, and understand.
❑ Designed with a set of guiding principles, known as "Zen of
Python," which emphasize simplicity, readability, and
explicitness.
Background
❑ First version of Python, Python 0.9.0, was released in 1991.
❑ Python 1.0 followed in 1994.
❑ Python 2.0 was released in 2000.
❑ Python 2.0 introduced new features like garbage collection
and Unicode support.
Background
❑ Python 3.0, a major revision of the language, was released
in 2008.
❑ Python 3.0 addresses various inconsistencies and design
flaws in Python 2.x.
❑ Python 3 has become the focus of development, with Python
2 reaching its end of life in 2020.
Session-1
Python Features
Session 1- Python Features
1. Easy to Learn
✓ Simple syntax and structure
✓ Easy for beginners to learn and start coding quickly.
✓ Easy to read and understand
Source:- https://www.tutorialspoint.com/python/python_features.htm
2. Easy to Code:-
✓ Easy Syntax. Comprises words from English language.
✓ No need to take care of any opening or closing of brackets.
✓ Uses indentation (spaces or Tabs) for scope.
Session 1- Python Features
✓ Eg, a simple Python program to add two numbers is as
follows:
a = 8
b = 9
print(a+b)
✓ Number of lines of code is less in Python.
Session 1- Python Features
3. Interpreted language
✓ Code is not compiled at once, converted to a .exe file, and
then executed.
✓ Code is executed line by line and not all at once.
✓ This line-by-line execution makes it easy to debug the code.
Session 1- Python Features
Source:- https://prepinsta.com/python/what-is-bytecode-in-python/
Session 1- Python Features
Source:- https://techvidvan.com/tutorials/python-interpreter/
Session 1- Python Features
4. Free and Open Source
✓ Used for free of cost on any operating system.
✓ Can be downloaded by anyone from its official website.
✓ Allows making of own modules or libraries.
Session 1- Python Features
5. Object-Oriented Language
✓ Supports object-oriented programming constructs.
✓ Easily create and use classes, objects, can implement OOP
constructs.
Session 1- Python Features
6. Cross-Platform Language
✓ Python code written on one machine or operating system
can be run anywhere.
✓ Python code first is converted to an intermediate form known
as Bytecode and is then executed.
Session 1- Python Features
7. Extensive feature
✓ Can be extended to become more versatile.
✓ Covers a large area in software development applications.
✓ Is adaptable to various functionalities.
✓ Can be integrated with other programming language’s code.
Session 1- Python Features
✓ Programmers can write codes that are less independent of
the specific machine type.
✓ Has strong abstraction from low-level constructs of system
or machine.
✓ Developer need not be concerned about architecture, or
underlying machine type.
8. High-Level Language
Session 1- Python Features
9. Databases Support
✓ Python Database API (DB-API).
✓ Databases supported by standard python:- MySQL,
PostgreSQL, Microsoft SQL, Oracle, Informix, etc.
✓ Interface for the particular database needs to be imported.
✓ Supports both relational as well as non-relational databases.
Session 1- Python Features
10. GUI Programming
✓ Supports features and libraries for graphical development.
✓ System calls and procedures defined to develop an
application’s perfect GUI.
✓ Examples of Python frameworks for GUI:- Django, Tkinter,
etc.
Session 1- Python Features
11. Extensible
✓ Makes use of other languages in python code possible.
✓ Can easily be embedded in existing code to make it more
robust and enhance its features.
✓ Other languages can be used to compile our python code.
Session 1- Python Features
Session 1- Python Features
12. Portable
✓ It allows us to code once and runs anywhere.
✓ Supports valuable features of object-oriented languages-
reusability.
✓ No need not worry about the environment where it will run.
Session 1- Python Features
✓ Bulk of cross-platform libraries, provides rich set of modules
and functions.
✓ Libraries compatible with various operating systems like
UNIX, Mac, windows, etc.
✓ Large number of libraries support import and use of required
functionality.
13. Large Standard Library
Session 1- Python Features
✓ No need to declare the data type of a variable explicitly.
✓ Data type of variable is decided at run time.
✓ One variable can be used to store different types of data at
different instances in the program.
14. Dynamic Typed Language
Session 1- Python Features
Real-world Use Cases/Applications
1. Versatility: Web development, Data science, Machine
learning, Artificial intelligence.
2. Ease of Learning: Reduced cost of program maintenance.
3. High Demand in the Job Market: High applicability in various
domains.
Real-world Use Cases/Applications (contd.)
4. Data Science and Machine Learning: Libraries simplify
complex tasks.
5. Automation and Scripting: System administrators, DevOps
engineers, and IT professionals use for efficient workflows.
6. Cross-platform Compatibility: Flexibility
Interview Questions/Quiz
1. What is the primary advantage of Python's dynamic typing?
_____________________.
2. Which feature of Python simplifies the creation of graphical user
interfaces (GUIs)? ______________.
3. Python is a what type of programming Language
____________.
4. What are some Python frameworks that support GUI?
___________.
5. Name some of the databases supported by Python ________.
Support Material references
❑ https://www.scaler.com/topics/python/features-of-python/
❑ https://www.prepbytes.com/blog/python/features-of-python/
❑ https://unstop.com/blog/features-of-python
❑ https://www.geeksforgeeks.org/advance-features-of-python/
THANK YOU

More Related Content

Similar to Dr. Tanvi FOCP Unit-2 Session-1 PPT (Revised).pdf

Why Python in required in Civil Engineering
Why Python in required in Civil EngineeringWhy Python in required in Civil Engineering
Why Python in required in Civil EngineeringRushikesh Kolhe
 
introduction to Python (for beginners)
introduction to Python (for beginners)introduction to Python (for beginners)
introduction to Python (for beginners)guobichrng
 
Introduction to Python Programming Basics
Introduction  to  Python  Programming BasicsIntroduction  to  Python  Programming Basics
Introduction to Python Programming BasicsDhana malar
 
2022-23TYBSC(CS)-PYTHON_PROG_ControlStructure.pptx
2022-23TYBSC(CS)-PYTHON_PROG_ControlStructure.pptx2022-23TYBSC(CS)-PYTHON_PROG_ControlStructure.pptx
2022-23TYBSC(CS)-PYTHON_PROG_ControlStructure.pptxsangeeta borde
 
report on internshala python training
 report on internshala python  training  report on internshala python  training
report on internshala python training surabhimalviya1
 
2015 bioinformatics python_introduction_wim_vancriekinge_vfinal
2015 bioinformatics python_introduction_wim_vancriekinge_vfinal2015 bioinformatics python_introduction_wim_vancriekinge_vfinal
2015 bioinformatics python_introduction_wim_vancriekinge_vfinalProf. Wim Van Criekinge
 
Python Programming Unit1_Aditya College of Engg & Tech
Python Programming Unit1_Aditya College of Engg & TechPython Programming Unit1_Aditya College of Engg & Tech
Python Programming Unit1_Aditya College of Engg & TechRamanamurthy Banda
 
Machine learning session 1
Machine learning session 1Machine learning session 1
Machine learning session 1NirsandhG
 
An Introduction To Python - Python, Print()
An Introduction To Python - Python, Print()An Introduction To Python - Python, Print()
An Introduction To Python - Python, Print()Blue Elephant Consulting
 
Introduction to Python Programming
Introduction to Python ProgrammingIntroduction to Python Programming
Introduction to Python ProgrammingAkhil Kaushik
 
Introduction to Python.pptx
Introduction to Python.pptxIntroduction to Python.pptx
Introduction to Python.pptxSamyakJain461
 
Python as Web Development
Python as Web Development Python as Web Development
Python as Web Development SamWas1
 
Python Applications by The Knowledge Academy.docx
Python Applications by The Knowledge Academy.docxPython Applications by The Knowledge Academy.docx
Python Applications by The Knowledge Academy.docxAbhinavSharma309481
 

Similar to Dr. Tanvi FOCP Unit-2 Session-1 PPT (Revised).pdf (20)

Why Python in required in Civil Engineering
Why Python in required in Civil EngineeringWhy Python in required in Civil Engineering
Why Python in required in Civil Engineering
 
introduction to Python (for beginners)
introduction to Python (for beginners)introduction to Python (for beginners)
introduction to Python (for beginners)
 
Introduction to Python Programming Basics
Introduction  to  Python  Programming BasicsIntroduction  to  Python  Programming Basics
Introduction to Python Programming Basics
 
2022-23TYBSC(CS)-PYTHON_PROG_ControlStructure.pptx
2022-23TYBSC(CS)-PYTHON_PROG_ControlStructure.pptx2022-23TYBSC(CS)-PYTHON_PROG_ControlStructure.pptx
2022-23TYBSC(CS)-PYTHON_PROG_ControlStructure.pptx
 
report on internshala python training
 report on internshala python  training  report on internshala python  training
report on internshala python training
 
2015 bioinformatics python_introduction_wim_vancriekinge_vfinal
2015 bioinformatics python_introduction_wim_vancriekinge_vfinal2015 bioinformatics python_introduction_wim_vancriekinge_vfinal
2015 bioinformatics python_introduction_wim_vancriekinge_vfinal
 
Python Programming Unit1_Aditya College of Engg & Tech
Python Programming Unit1_Aditya College of Engg & TechPython Programming Unit1_Aditya College of Engg & Tech
Python Programming Unit1_Aditya College of Engg & Tech
 
What is python
What is pythonWhat is python
What is python
 
IPT 2.pptx
IPT 2.pptxIPT 2.pptx
IPT 2.pptx
 
Research paper on python by Rj
Research paper on python by RjResearch paper on python by Rj
Research paper on python by Rj
 
Machine learning session 1
Machine learning session 1Machine learning session 1
Machine learning session 1
 
An Introduction To Python - Python, Print()
An Introduction To Python - Python, Print()An Introduction To Python - Python, Print()
An Introduction To Python - Python, Print()
 
Python Introduction.ppt
Python Introduction.pptPython Introduction.ppt
Python Introduction.ppt
 
Introduction to Python Programming
Introduction to Python ProgrammingIntroduction to Python Programming
Introduction to Python Programming
 
Introduction to Python.pptx
Introduction to Python.pptxIntroduction to Python.pptx
Introduction to Python.pptx
 
Python
PythonPython
Python
 
Introduction to python
Introduction to pythonIntroduction to python
Introduction to python
 
Python as Web Development
Python as Web Development Python as Web Development
Python as Web Development
 
Python PPT 50.pptx
Python PPT 50.pptxPython PPT 50.pptx
Python PPT 50.pptx
 
Python Applications by The Knowledge Academy.docx
Python Applications by The Knowledge Academy.docxPython Applications by The Knowledge Academy.docx
Python Applications by The Knowledge Academy.docx
 

More from RahulSingh190790

ETCS262A-Analysis of design Algorithm.pptx
ETCS262A-Analysis of design Algorithm.pptxETCS262A-Analysis of design Algorithm.pptx
ETCS262A-Analysis of design Algorithm.pptxRahulSingh190790
 
Fundamntl of computer programing in python.pptx
Fundamntl of computer programing in python.pptxFundamntl of computer programing in python.pptx
Fundamntl of computer programing in python.pptxRahulSingh190790
 
Java Control Structure Session 1 Complete (1).pptx
Java Control Structure Session 1 Complete (1).pptxJava Control Structure Session 1 Complete (1).pptx
Java Control Structure Session 1 Complete (1).pptxRahulSingh190790
 
Seminar or Progress Viva PPT format 2022.pptx
Seminar or Progress Viva PPT format 2022.pptxSeminar or Progress Viva PPT format 2022.pptx
Seminar or Progress Viva PPT format 2022.pptxRahulSingh190790
 
Synopsis Lokesh Pawar.pptx
Synopsis Lokesh Pawar.pptxSynopsis Lokesh Pawar.pptx
Synopsis Lokesh Pawar.pptxRahulSingh190790
 

More from RahulSingh190790 (6)

ETCS262A-Analysis of design Algorithm.pptx
ETCS262A-Analysis of design Algorithm.pptxETCS262A-Analysis of design Algorithm.pptx
ETCS262A-Analysis of design Algorithm.pptx
 
Fundamntl of computer programing in python.pptx
Fundamntl of computer programing in python.pptxFundamntl of computer programing in python.pptx
Fundamntl of computer programing in python.pptx
 
Java Control Structure Session 1 Complete (1).pptx
Java Control Structure Session 1 Complete (1).pptxJava Control Structure Session 1 Complete (1).pptx
Java Control Structure Session 1 Complete (1).pptx
 
Seminar or Progress Viva PPT format 2022.pptx
Seminar or Progress Viva PPT format 2022.pptxSeminar or Progress Viva PPT format 2022.pptx
Seminar or Progress Viva PPT format 2022.pptx
 
Synopsis Lokesh Pawar.pptx
Synopsis Lokesh Pawar.pptxSynopsis Lokesh Pawar.pptx
Synopsis Lokesh Pawar.pptx
 
showprojfile.asp.pdf
showprojfile.asp.pdfshowprojfile.asp.pdf
showprojfile.asp.pdf
 

Recently uploaded

High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).pptssuser5c9d4b1
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxpranjaldaimarysona
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSSIVASHANKAR N
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerAnamika Sarkar
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSRajkumarAkumalla
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxAsutosh Ranjan
 
Analog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog ConverterAnalog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog ConverterAbhinavSharma374939
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxJoão Esperancinha
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 

Recently uploaded (20)

High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptx
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
 
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptxExploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 
Analog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog ConverterAnalog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog Converter
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINEDJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
 

Dr. Tanvi FOCP Unit-2 Session-1 PPT (Revised).pdf

  • 1. Faculty Name: Dr. Tanvi Chawla Subject: Fundamentals of Computer Programming Program: BTech (CSE)/BTech Full Stack Xebia/BTech UX UI/B.Sc. DS/B.Sc. Cyber/MC
  • 3. Session Agenda ➢ Session-1 • Python Features • Local Environment Setup, • Installing Python, Setting up PATH ➢ Session-2 • Python Syntax, Keywords • Understanding Variables • Data Types: Scalar Types
  • 4. Session Agenda ➢ Session-3 • Sequence Type, Mapping Type, Set Types • Mutable Types: List, Dictionary, Set • Immutable Types: Numbers, String, Tuple ➢ Session-4 • Operators: Arithmetic, Assignment, Comparison • Logical, Identity, Membership, Bitwise
  • 5. Session Agenda ➢ Session-5 • Basic of String, Manipulating strings, • Modify Strings, String Concatenation, • Format – Strings ➢ Session-6 • Escape Characters, • Inbuilt method of Strings • Basic of Regular Expressions
  • 6. Objectives/Key Learning Outcomes ❖ To comprehend why Python is a useful scripting language for students and developers. ❖ Explore the various methods available for installing Python. ❖ Learn how to verify that Python has been installed correctly.
  • 7. Objectives/Key Learning Outcomes ❖ Understand how to configure environment variables. ❖ Ensure that Python and its associated tools are accessible from the command line or terminal. ❖ Gain familiarity with common issues that may arise during the installation process.
  • 8. Importance of the topics being covered ❑ Understanding the Language ❑ Effective Utilization ❑ Optimized Code ❑ Collaboration and Communication ❑ Adaptability to New Technologies ❑ Staying relevant in the tech industry
  • 9. Key Concepts and Fundamentals ▪ Syntax and Basic Concepts: Variables, data types (integers, floats, strings, booleans), operators, and comments. ▪ Control Flow: Conditional statements (if-elif-else), loops (for, while), and flow control statements (break, continue, pass).
  • 10. Key Concepts and Fundamentals ▪ Functions: Reusable blocks of code performing a specific task. ▪ Data Structures: Built-in data structures like lists, tuples, dictionaries, and sets.
  • 11. Key Concepts and Fundamentals ▪ Modules and Packages: Python files containing reusable code and directories containing multiple modules. ▪ File Handling: Built-in functions and modules for reading from and writing to files.
  • 12. Key Concepts and Fundamentals ▪ Exception Handling: Try-except blocks for catching and handling exceptions. ▪ Object-Oriented Programming (OOP): Supports the creation and manipulation of objects.
  • 13. Key Concepts and Fundamentals ▪ Libraries and Packages: Rich ecosystem of libraries and packages that extend its functionality. ▪ Virtual Environments: Virtual environments allow you to create isolated Python environments for different projects.
  • 14. Background ❑ A high-level, interpreted programming language created by Guido van Rossum and first released in 1991. ❑ Is easy to read, write, and understand. ❑ Designed with a set of guiding principles, known as "Zen of Python," which emphasize simplicity, readability, and explicitness.
  • 15. Background ❑ First version of Python, Python 0.9.0, was released in 1991. ❑ Python 1.0 followed in 1994. ❑ Python 2.0 was released in 2000. ❑ Python 2.0 introduced new features like garbage collection and Unicode support.
  • 16. Background ❑ Python 3.0, a major revision of the language, was released in 2008. ❑ Python 3.0 addresses various inconsistencies and design flaws in Python 2.x. ❑ Python 3 has become the focus of development, with Python 2 reaching its end of life in 2020.
  • 18. Session 1- Python Features 1. Easy to Learn ✓ Simple syntax and structure ✓ Easy for beginners to learn and start coding quickly. ✓ Easy to read and understand
  • 20. 2. Easy to Code:- ✓ Easy Syntax. Comprises words from English language. ✓ No need to take care of any opening or closing of brackets. ✓ Uses indentation (spaces or Tabs) for scope. Session 1- Python Features
  • 21. ✓ Eg, a simple Python program to add two numbers is as follows: a = 8 b = 9 print(a+b) ✓ Number of lines of code is less in Python. Session 1- Python Features
  • 22. 3. Interpreted language ✓ Code is not compiled at once, converted to a .exe file, and then executed. ✓ Code is executed line by line and not all at once. ✓ This line-by-line execution makes it easy to debug the code. Session 1- Python Features
  • 25. 4. Free and Open Source ✓ Used for free of cost on any operating system. ✓ Can be downloaded by anyone from its official website. ✓ Allows making of own modules or libraries. Session 1- Python Features
  • 26. 5. Object-Oriented Language ✓ Supports object-oriented programming constructs. ✓ Easily create and use classes, objects, can implement OOP constructs. Session 1- Python Features
  • 27. 6. Cross-Platform Language ✓ Python code written on one machine or operating system can be run anywhere. ✓ Python code first is converted to an intermediate form known as Bytecode and is then executed. Session 1- Python Features
  • 28. 7. Extensive feature ✓ Can be extended to become more versatile. ✓ Covers a large area in software development applications. ✓ Is adaptable to various functionalities. ✓ Can be integrated with other programming language’s code. Session 1- Python Features
  • 29. ✓ Programmers can write codes that are less independent of the specific machine type. ✓ Has strong abstraction from low-level constructs of system or machine. ✓ Developer need not be concerned about architecture, or underlying machine type. 8. High-Level Language Session 1- Python Features
  • 30. 9. Databases Support ✓ Python Database API (DB-API). ✓ Databases supported by standard python:- MySQL, PostgreSQL, Microsoft SQL, Oracle, Informix, etc. ✓ Interface for the particular database needs to be imported. ✓ Supports both relational as well as non-relational databases. Session 1- Python Features
  • 31. 10. GUI Programming ✓ Supports features and libraries for graphical development. ✓ System calls and procedures defined to develop an application’s perfect GUI. ✓ Examples of Python frameworks for GUI:- Django, Tkinter, etc. Session 1- Python Features
  • 32. 11. Extensible ✓ Makes use of other languages in python code possible. ✓ Can easily be embedded in existing code to make it more robust and enhance its features. ✓ Other languages can be used to compile our python code. Session 1- Python Features
  • 33. Session 1- Python Features
  • 34. 12. Portable ✓ It allows us to code once and runs anywhere. ✓ Supports valuable features of object-oriented languages- reusability. ✓ No need not worry about the environment where it will run. Session 1- Python Features
  • 35. ✓ Bulk of cross-platform libraries, provides rich set of modules and functions. ✓ Libraries compatible with various operating systems like UNIX, Mac, windows, etc. ✓ Large number of libraries support import and use of required functionality. 13. Large Standard Library Session 1- Python Features
  • 36. ✓ No need to declare the data type of a variable explicitly. ✓ Data type of variable is decided at run time. ✓ One variable can be used to store different types of data at different instances in the program. 14. Dynamic Typed Language Session 1- Python Features
  • 37. Real-world Use Cases/Applications 1. Versatility: Web development, Data science, Machine learning, Artificial intelligence. 2. Ease of Learning: Reduced cost of program maintenance. 3. High Demand in the Job Market: High applicability in various domains.
  • 38. Real-world Use Cases/Applications (contd.) 4. Data Science and Machine Learning: Libraries simplify complex tasks. 5. Automation and Scripting: System administrators, DevOps engineers, and IT professionals use for efficient workflows. 6. Cross-platform Compatibility: Flexibility
  • 39. Interview Questions/Quiz 1. What is the primary advantage of Python's dynamic typing? _____________________. 2. Which feature of Python simplifies the creation of graphical user interfaces (GUIs)? ______________. 3. Python is a what type of programming Language ____________. 4. What are some Python frameworks that support GUI? ___________. 5. Name some of the databases supported by Python ________.
  • 40. Support Material references ❑ https://www.scaler.com/topics/python/features-of-python/ ❑ https://www.prepbytes.com/blog/python/features-of-python/ ❑ https://unstop.com/blog/features-of-python ❑ https://www.geeksforgeeks.org/advance-features-of-python/