# CSE302 / Python

## Syllabus

{% file src="<https://2980675225-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7uMP7Ghb8mcjzaqhpGZJ%2Fuploads%2F7FC3ul6Hynm2H6UO4547%2FCSE302%20Python%20Syllabus%20BTECH-IT.pdf?alt=media&token=567b7bad-2f73-4793-aafd-5648dc040405>" %}

## Resources

<details>

<summary>M1: Introduction of Python</summary>

* Introduction to Python
  * History of Python
  * Features of Python Programming
  * Applications of Python
  * Use of Python in various domains
  * Installation and running Python on Windows/Linux
* Basic Syntax and Structure
  * Keywords and Identifiers
  * Statements and Comments
  * Python Variables
  * Python Data Types
  * Python Type Conversion
  * Python I/O and Import
  * Python Operators
  * Python Namespace
* Control Flow and Looping
  * If-else Statements
  * Python for Loop
  * while Loop
  * Break and Continue Statements
* Data Structures and Manipulation
  * String Manipulation
  * Lists, Tuples, and Dictionaries
  * Pass Statement
  * Looping Techniques (e.g., List comprehensions, etc.)
* Functions in Python
  * Functions and Function Arguments
  * Recursion
  * Anonymous Functions (Lambda functions)
  * Python Global, Local, and Nonlocal variables

</details>

<details>

<summary>M2: Object and Class</summary>

* Python Modules and Packages
  * Python Modules
  * Python Packages
* File Operations and Directory Handling
  * File Operations (Reading, Writing, etc.)
  * Python Directory Operations
* Exception Handling
  * Python Exception Handling
  * User-defined Exceptions
* Object-Oriented Programming (OOP) Concepts
  * Classes and Objects in Python
  * Inheritance
    * Single Inheritance
    * Multiple Inheritance
  * Operator Overloading

</details>

<details>

<summary>M3: Regular Expression, CGI and DB</summary>

* Regular Expressions in Python
  * match() function
  * search() function
  * Matching vs. Searching
  * Modifiers in Regular Expressions
  * Patterns in Regular Expressions
* CGI (Common Gateway Interface) Programming
  * Introduction to CGI
  * CGI Architecture
  * CGI Environment Variables
  * GET/POST Methods in CGI
  * Working with Cookies
  * File Uploads using CGI
* Database Programming in Python
  * Introduction to Databases
  * Database Connections in Python
  * Executing SQL Queries
  * Transactions in Databases
  * Handling Database Errors

</details>

<details>

<summary>M4: GUI Programming</summary>

* GUI Programming with Tkinter
  * Tkinter Overview
  * Tkinter Widgets (e.g., Buttons, Labels, Entry fields, etc.)
  * Standard Attributes of Widgets
* CGI Programming
  * Introduction to CGI Programming (basic concepts)
* Web Frameworks: Django
  * Introduction to Django Web Framework
  * Application Lifecycle in Django
  * Creating a Django Project
  * Django Admin Interface
  * Creating Views in Django
  * URL Mapping in Django
  * Template System in Django
  * Creating Database Models in Django
  * Interfacing Databases with Django (e.g., PostgreSQL)
  * Page Redirection in Django
  * Form Processing in Django

</details>

## Notes

\[⤓] [CSE302 Python Top Topics for EndSem](https://drive.google.com/file/d/1PA3cyzRTU8Sd1Wa7qL1c-vq5__58DwLY/view?usp=drive_link)

{% embed url="<https://drive.google.com/file/d/1PA3cyzRTU8Sd1Wa7qL1c-vq5__58DwLY/view?usp=drive_link>" %}

<table><thead><tr><th width="84.51953125">[⤓] </th><th>Content Preview</th></tr></thead><tbody><tr><td><a href="https://drive.google.com/uc?export=download&#x26;id=1knoyA7YYUm1ycdw8nHxijIQUxsxOIKaD" class="button primary" data-icon="arrow-down-to-square"></a></td><td><a href="https://drive.google.com/file/d/1knoyA7YYUm1ycdw8nHxijIQUxsxOIKaD/view?usp=drive_link">CSE302-PYTHON-ALL-MODULES-KEYNOTES</a> (Contributed by: Parikshit Singh)</td></tr><tr><td><a href="https://drive.google.com/uc?export=download&#x26;id=1PDzU7pZT_C8T5I27IghB-UauQL12Y2eH" class="button primary" data-icon="arrow-down-to-square"></a></td><td><a href="https://drive.google.com/file/d/1PDzU7pZT_C8T5I27IghB-UauQL12Y2eH/view?usp=drive_link">CSE302 Python Q-Bank Solutions</a></td></tr></tbody></table>

## Question Directory

### Previous Year Questions

\[⤓] [Midsem-CSE302-Y2S3-BTECH-CSE-IT-OCT24](https://drive.google.com/file/d/1m7rIM4BgpGWurGmLld__dIflmAyotI9D/view?usp=drive_link)

{% embed url="<https://drive.google.com/file/d/1m7rIM4BgpGWurGmLld__dIflmAyotI9D/view?usp=drive_link>" %}

\[⤓][ CSE302-PYQ-BTECH-CSE-IT-Sem3Jan23](https://drive.google.com/file/d/10X-CFbwIWcGTAkzO7EYKAA6DFsbqzlTI/view?usp=drive_link)

{% embed url="<https://drive.google.com/file/d/10X-CFbwIWcGTAkzO7EYKAA6DFsbqzlTI/view?usp=drive_link>" %}

\[⤓] [CSE302-PYQ-BTECH-CSE-IT-Sem3Dec23](https://drive.google.com/file/d/10hmWLb_LkYGuWsy7t1sXiHpBItQJYB6s/view?usp=drive_link)

{% embed url="<https://drive.google.com/file/d/10hmWLb_LkYGuWsy7t1sXiHpBItQJYB6s/view?usp=drive_link>" %}

\[⤓][ CSE302-PYQ-BTECH-CSE-IT-Sem3Dec24](https://drive.google.com/file/d/1vRfy2i4nDD1ip9j33nVGRNssUzQYkWJd/view?usp=drive_link)

{% embed url="<https://drive.google.com/file/d/1vRfy2i4nDD1ip9j33nVGRNssUzQYkWJd/view?usp=drive_link>" %}

### BackPaper

\[⤓] [CSE302-PYQ-BackQPaper-BTECH-CSE-IT-Sem3Dec24](https://drive.google.com/file/d/10_FCAxyg2_wgd4JEaG0h_oKZRGThv4D7/view?usp=drive_link)

{% embed url="<https://drive.google.com/file/d/10_FCAxyg2_wgd4JEaG0h_oKZRGThv4D7/view?usp=drive_link>" %}

\[⤓] [CSE302-PYQ-BackQPaper-BTECH-CSE-IT-Sem3Nov25](https://drive.google.com/file/d/15mVQiIWDO_e1V3wi7R4wPN0WqMSYkizr/view?usp=drive_link)

{% embed url="<https://drive.google.com/file/d/15mVQiIWDO_e1V3wi7R4wPN0WqMSYkizr/view?usp=drive_link>" %}

## External Sources

{% embed url="<https://youtu.be/mDKM-JtUhhc?si=gbDzJOV2l7ynGLnq>" %}

{% embed url="<https://www.wscubetech.com/resources/python>" %}
Complete Notes on Every Concept
{% endembed %}

{% embed url="<https://www.wscubetech.com/resources/python/programs>" %}
Practice Code Programs in Python
{% endembed %}

***

{% embed url="<https://mantavyam.notion.site/18152f7cde8880d699a5f2e65f87374e>" %}
Get Credited for sharing your Knowledge Source with your Peer
{% endembed %}

{% embed url="<https://mantavyam.notion.site/17e52f7cde8880e0987fd06d33ef6019>" %}
Submit Queries/Feedbacks/Suggestions/Complaints using this Form
{% endembed %}
