0% found this document useful (0 votes)
20 views22 pages

Lect 1

PYTHON INTRODUCTION

Uploaded by

katwilson2479
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views22 pages

Lect 1

PYTHON INTRODUCTION

Uploaded by

katwilson2479
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 22

Python

Programming
• Who developed python?
• Why it is used?
• How it is different from other languages and its
feature.
• Applications and job roles.
Who developed python?

• Python was created by Guido van Rossum in 1991 and


further developed by the Python Software
Foundation.
• It was designed with focus on code readability and its
syntax allows us to express concepts in fewer lines of
code.
Key Features of Python
• Python’s simple and readable syntax makes it beginner-friendly.
• Python runs seamlessly on Windows, macOS and Linux.
• Includes libraries for tasks like web development, data analysis and
machine learning.
• Variable types are determined automatically at runtime, simplifying
code writing.
• Supports multiple programming paradigms, including object-oriented,
functional and procedural programming.
• Python is free to use, distribute and modify.
Python is used for
1. Web Development: Frameworks like Django, Flask.
2. Data Science and Analysis: Libraries like Pandas, NumPy, Matplotlib.
3. Machine Learning and AI: TensorFlow, Scikit-learn.
4. Automation and Scripting: Automate repetitive tasks.
5. Game Development: Libraries like Pygame.
6. Web Scraping: Tools like BeautifulSoup, Scrapy.
7. Desktop Applications: GUI frameworks like Tkinter, PyQt.
8. Scientific Computing: SciPy, SymPy.
9. Internet of Things (IoT): MicroPython, Raspberry Pi.
10. DevOps and Cloud: Automation scripts and APIs.
11. Cybersecurity: Penetration testing and ethical hacking tools.
Why Python Skills Are in High Demand

• Simple syntax: Great for beginners and readable for teams


• Versatile use cases: Automation, web apps, data pipelines, ML
models, and more
• Extensive libraries: From Selenium and Flask to Pandas and
TensorFlow
• Community support: Active forums, courses, GitHub repos,
Difference between C and Python
Comparison
C Python
Parameter
The Python programming language was first
The C programming language was developed
Developed / Founded by worked upon by Guido van Rossum and was
by Dennis M. Ritchie in 1972.
released in the year 1991.
Python is an object oriented programming
Programming model C is a procedural programming language
language.
C is a middle level language as it binds the Python is a high-level language as the
Type of language bridges between machine level and high level translation of Python code takes place into
languages. machine language, using an interpreter.

Python is an interpreted programming


C is a compiled programming language. Special
language. Special programs known as
Compilation and programs known as compilers check the C code
interpreters check the entire Python code and
Interpretation line by line and if any error is found on any line,
all the errors in the entire Python code is
the program compilation stops then and there.
reported at once.

C is a faster language compared to Python as it Python programs are usually slower than C
Speed
is compiled. programs as they are interpreted.
In Python, variables are untyped, that is, there is no need
In C, the type of the various variables must be declared
to define the data type of a variable while declaring it. A
Variable Declaration when they are created, and only values of those
given variable in Python can store values of different data
particular types must be assigned to them.
types in different parts of the Python code.

Pointers C has support for pointers. Python has no support pointers.

The C programming language is mostly used for the


Applications Python is a general purpose programming language
development of hardware applications.

Built-in functions The number of built-in functions in C are very limited. There are a lot of built-in functions in Python.

To use various data structures like stacks, queues, etc. in It is easier to use Data Structures in Python as it provides
Usage of Data Structures
C, we need to implement them on our own. built in libraries for the same.

Type of file C codes are stored with .c extension. Python codes are stored with .py extension.
Difference between Python and C++(H.W)
Famous Application Built using Python
1. YouTube: uses Python for features like video streaming and backend services.
2. Instagram: This popular social media app relies on Python’s simplicity for
scaling and handling millions of users.
3. Spotify: Python is used for backend services and machine learning to
personalize music recommendations.
4. Dropbox: The file hosting service uses Python for both its desktop client and
server-side operations.
5. Netflix: Python powers key components of Netflix’s recommendation engine
and content delivery systems (CDN).
6. Google: used in Google for web crawling, testing and data analysis.
7. Uber: Python helps Uber handle dynamic pricing and route optimization using
machine learning.
8. Pinterest: used to process and store huge amounts of image data efficiently.
How to practice python
1. Google collab
2. Visual studio code
3. anaconda
Job role
1. Python developer
2. Data analyst
3. Machine Learning & AI
4. DevOps & Scripting
❑Python also plays a key role in DevOps roles.
Use it to:
▪ Write deployment scripts
▪ Automate system tasks
▪ Integrate CI/CD pipelines (Jenkins, GitHub Actions)
▪ Analyze logs and alerts

You might also like