PyDays Day - 1
PyDays Day - 1
PyDays Day - 1
Pytho
-1
n
An initiative by Learning
Nexus
• Introduction to Python
• Basic Syntax and
Variables
The agenda of • Data Structures
this • Operators
• Control Flow
Python
• Functions
Bootcamp • Modules and Libraries
• File Handling
• Error Handling
Introduction to
Python
What is
Python?
Python is an interpreted, high-level, general-purpose
programming language. It’s known for its simplicity,
readability, and versatility, often used in web
development, data science, AI, and more.
Why to choose Python?
Python’s syntax is similar to English, making it beginner-
friendly. It has a large, supportive community and
extensive libraries, enabling developers to handle diverse
tasks quickly.
Lets setup Python!
• IDLE (Integrated Development
Enviroment)
• Jupyter Notebook
• Visual Studio Code
Basic Syntaxes and
Variables
Variables and Datatypes
• Variables are containers for storing data
• Python is dynamically typed, meaning you don’t need to
declare variable types:
• ADDITION ( + )
• SUBTRACTION ( - )
• MULTIPLICATION ( * )
• DIVISION ( / )
• FLOOR DIVISION ( // )
• MODULO ( % )
• EXPONENTIATION ( ** ).
Operators
Comparison Operators
• ==
• !=
• <
• >
Operators
LOGICAL OPERATORS
• and
• or
• not
Assignment Operators
• =
• +=
• *=
Control Flow
Conditional statements are essential for controlling the flow of a
program, allowing it to make decisions based on specific
conditions.
Exception Basics :