Book Chapter Notes Code Walkthroughs

PYTHON

Chapters

Chapter 1 — Data Types

Topic A — Numeric Types
Topic

Used for numbers.

Types

int
float
complex

Example
Example
Code
a = 10        # int
b = 3.14      # float
c = 2 + 3j    # complex

print(type(a))
print(type(b))
print(type(c))
Output
<class 'int'>
<class 'float'>
<class 'complex'>
Topic B — String (str)
Topic

Used to store text.

Example
Example
Code
name = "Shubham"
city = 'Pune'

print(name)
print(type(name))
Output
Shubham
<class 'str'>
Strings support operations like
Example
Code
text = "Python"
print(text.upper())
print(text.lower())
print(len(text))
Output
PYTHON
python
6
Topic C — List
Topic

A list is an ordered collection of items.

Mutable (can change)

Topic D — Tuple
Topic

Similar to list but immutable (cannot change).

Topic E — Dictionary (dict)
Topic

Stores key-value pairs.

Chapter 2 — Memory Management

Add topics for this chapter to display details here.

Chapter 3 — OOPS

Add topics for this chapter to display details here.

Chapter 4 — Decorators, Generator, Iterators

Add topics for this chapter to display details here.

Chapter 5 — LAMBDA function

Add topics for this chapter to display details here.

Chapter 6 — Context Manager

Add topics for this chapter to display details here.

Chapter 7 — Multithreading & Multiprocessing

Add topics for this chapter to display details here.

Chapter 8 — Synchronous and Asynchronous

Add topics for this chapter to display details here.

Chapter 9 — DSA Learning

Add topics for this chapter to display details here.

Chapter 10 — Sorting Algorithm's

Add topics for this chapter to display details here.

Practice Problems

Problem 1 — Reverse a String

Add programs for this problem from the admin panel.

Problem 2 — Check Palindrome

Add programs for this problem from the admin panel.

Problem 3 — Find Duplicate Elements in List

Add programs for this problem from the admin panel.

Problem 4 — Fibonacci

Add programs for this problem from the admin panel.

Problem 5 — Find First Non-Repeating Character

Add programs for this problem from the admin panel.

Problem 6 — Check Anagram

Add programs for this problem from the admin panel.

Problem 7 — Find Missing Number in Array (1 to N)

Add programs for this problem from the admin panel.

Problem 8 — Longest Substring Without Repeating Characters

Add programs for this problem from the admin panel.

Problem 9 — Decorator Example

Add programs for this problem from the admin panel.

Problem 10 — Multithreading Example

Add programs for this problem from the admin panel.

Problem 11 — Binary search

Add programs for this problem from the admin panel.

Problem 12 — linked list

Add programs for this problem from the admin panel.

Problem 13 — Circular linked list

Add programs for this problem from the admin panel.

Problem 14 — Check the frequency of the element in the List

Add programs for this problem from the admin panel.
Optimus Assistant