0% found this document useful (0 votes)
0 views9 pages

Assignment 1 Task 2

Python is a high-level, interpreted programming language created by Guido van Rossum and first released in 1991, known for its readability and simplicity. It features functions for reusable code and modules for organizing programs, with a strong community and extensive libraries. Python 3 is the actively developed version, widely used in various fields such as web development and data science.

Uploaded by

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

Assignment 1 Task 2

Python is a high-level, interpreted programming language created by Guido van Rossum and first released in 1991, known for its readability and simplicity. It features functions for reusable code and modules for organizing programs, with a strong community and extensive libraries. Python 3 is the actively developed version, widely used in various fields such as web development and data science.

Uploaded by

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

INTRODUCTION

TO PYTHON
History, Functions And Modules
 High-level, interpreted programming language.

 Created by Guido van Rossum.

 First released in 1991.

 Emphasizes code readability with simple


syntax.

 Widely used in web development, data science,


automation, and more.

WHAT IS PYTHON?
 Developed as a successor to the ABC
programming language.
 Name “Python” inspired by Monty Python’s
Flying Circus.
 Open-sourced from the beginning.
 Major versions: Python 2 (2000), Python 3
(2008).
 Python 3 is the current and actively developed
version.

HISTORY OF PYTHON
 Easy to read and write.

 Large standard library.

 Massive community support.

 Cross-platform compatibility.

WHY LEARN PYTHON?


 A function is a block of reusable code.
 Defined using the ‘def’ keyword.
 Can accept parameters and return values.
 Improves modularity and reusability.

FUNCTIONS IN PYTHON
Functions Built-in Functions:
print(), len(), type()

User-defined
Functions: Created
by the programmer
Lambda Functions:
Anonymous
functions using
lambda keyword

TYPES OF FUNCTIONS
 A module is a file containing Python definitions
and statements.
 Helps organize large programs into small files.
 Can be imported into other scripts.

MODULES IN PYTHON
Commonly Used Modules :
 math: Mathematical functions
 Datetime: Date and time handling
 random: Generate random numbers
 OS: Interact with the operating system
Creating a Custom Module :
 Create a .py file with
functions.
 Import it in another
script.
 Python is beginner-friendly and powerful.
 Functions help organize and reuse code.
 Modules make code modular and manageable.
 Knowing how to use both is key for efficient
programming.

CONCLUSION

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy