[go: up one dir, main page]

0% found this document useful (0 votes)
4 views2 pages

Python Notes

Uploaded by

mukesh
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)
4 views2 pages

Python Notes

Uploaded by

mukesh
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/ 2

Python Notes

1. Introduction to Python
- Python is a high-level, interpreted, object-oriented programming language created by Guido van
Rossum in 1991.
- Features: Simple, Portable, Extensible, Dynamically Typed, Open Source.
- Applications: Web Development, Data Science, AI, Automation, etc.

2. Python Basics
- Keywords (35 in Python 3.12)
- Identifiers, Variables, Data Types
- Input/Output (input(), print())
- Comments (# for single line)

3. Operators
- Arithmetic (+, -, *, /, %)
- Relational (==, !=, >, <)
- Logical (and, or, not)
- Assignment (=, +=, -=)
- Bitwise (&, |, ^, <<, >>)

4. Control Statements
- if, if-else, nested if
- for loop, while loop
- break, continue, pass

5. Functions
- def keyword for defining functions
- Arguments and Return values
- Lambda functions
- Recursion

6. Data Structures
- String
- List
- Tuple
- Set
- Dictionary

7. Object-Oriented Programming
- Class and Objects
- Constructor (__init__)
- Inheritance
- Polymorphism
- Encapsulation

8. Exception Handling
- try, except, finally, raise

9. Modules and Packages


- Importing modules
- Standard Libraries (math, random, datetime)

10. File Handling


- Open, Read, Write, Close
- Modes: r, w, a

11. Advanced Concepts (Intro)


- Iterators
- Generators
- Decorators

You might also like