0% found this document useful (0 votes)
3 views70 pages

Python Detailed Telugu Notes

The document provides an introduction to Python data types, including int, float, complex, bool, str, list, tuple, set, frozenset, dict, and range, along with their definitions, syntax, examples, common mistakes, interview points, and exam notes. It also covers type conversion, mutable vs immutable concepts, memory concepts, various error types, exception handling, and custom exceptions. Additionally, it includes interview questions and coding examples.

Uploaded by

jagadeeshakhil35
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)
3 views70 pages

Python Detailed Telugu Notes

The document provides an introduction to Python data types, including int, float, complex, bool, str, list, tuple, set, frozenset, dict, and range, along with their definitions, syntax, examples, common mistakes, interview points, and exam notes. It also covers type conversion, mutable vs immutable concepts, memory concepts, various error types, exception handling, and custom exceptions. Additionally, it includes interview questions and coding examples.

Uploaded by

jagadeeshakhil35
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

Introduction to Python Data Types

Python lo data ni store cheyyadaniki data types use chestaru. Variables values ni store chestayi.

Example:
print('Python')

Detailed Notes:
1. Definition
2. Syntax
3. Examples
4. Common mistakes
5. Interview points
6. Exam notes.
int

Whole numbers store chestundi. Example: a=10

Example:
print('Python')

Detailed Notes:
1. Definition
2. Syntax
3. Examples
4. Common mistakes
5. Interview points
6. Exam notes.
float

Decimal values. Example: pi=3.14

Example:
print('Python')

Detailed Notes:
1. Definition
2. Syntax
3. Examples
4. Common mistakes
5. Interview points
6. Exam notes.
complex

Complex numbers: 2+3j

Example:
print('Python')

Detailed Notes:
1. Definition
2. Syntax
3. Examples
4. Common mistakes
5. Interview points
6. Exam notes.
bool

True / False values

Example:
print('Python')

Detailed Notes:
1. Definition
2. Syntax
3. Examples
4. Common mistakes
5. Interview points
6. Exam notes.
str

Text data store chestundi

Example:
print('Python')

Detailed Notes:
1. Definition
2. Syntax
3. Examples
4. Common mistakes
5. Interview points
6. Exam notes.
list

Mutable sequence. append(), remove(), sort()

Example:
print('Python')

Detailed Notes:
1. Definition
2. Syntax
3. Examples
4. Common mistakes
5. Interview points
6. Exam notes.
tuple

Immutable collection

Example:
print('Python')

Detailed Notes:
1. Definition
2. Syntax
3. Examples
4. Common mistakes
5. Interview points
6. Exam notes.
set

Unique values matrame untayi

Example:
print('Python')

Detailed Notes:
1. Definition
2. Syntax
3. Examples
4. Common mistakes
5. Interview points
6. Exam notes.
frozenset

Immutable set

Example:
print('Python')

Detailed Notes:
1. Definition
2. Syntax
3. Examples
4. Common mistakes
5. Interview points
6. Exam notes.
dict

Key-value pairs

Example:
print('Python')

Detailed Notes:
1. Definition
2. Syntax
3. Examples
4. Common mistakes
5. Interview points
6. Exam notes.
range

Sequence generation

Example:
print('Python')

Detailed Notes:
1. Definition
2. Syntax
3. Examples
4. Common mistakes
5. Interview points
6. Exam notes.
Type Conversion

int(), float(), str()

Example:
print('Python')

Detailed Notes:
1. Definition
2. Syntax
3. Examples
4. Common mistakes
5. Interview points
6. Exam notes.
Mutable vs Immutable

List mutable; tuple immutable

Example:
print('Python')

Detailed Notes:
1. Definition
2. Syntax
3. Examples
4. Common mistakes
5. Interview points
6. Exam notes.
Memory concepts

Reference and objects

Example:
print('Python')

Detailed Notes:
1. Definition
2. Syntax
3. Examples
4. Common mistakes
5. Interview points
6. Exam notes.
SyntaxError

Wrong syntax

Example:
print('Python')

Detailed Notes:
1. Definition
2. Syntax
3. Examples
4. Common mistakes
5. Interview points
6. Exam notes.
IndentationError

Spacing mistakes

Example:
print('Python')

Detailed Notes:
1. Definition
2. Syntax
3. Examples
4. Common mistakes
5. Interview points
6. Exam notes.
NameError

Undefined variable

Example:
print('Python')

Detailed Notes:
1. Definition
2. Syntax
3. Examples
4. Common mistakes
5. Interview points
6. Exam notes.
TypeError

Invalid operation between types

Example:
print('Python')

Detailed Notes:
1. Definition
2. Syntax
3. Examples
4. Common mistakes
5. Interview points
6. Exam notes.
ValueError

Correct type but wrong value

Example:
print('Python')

Detailed Notes:
1. Definition
2. Syntax
3. Examples
4. Common mistakes
5. Interview points
6. Exam notes.
IndexError

Invalid index

Example:
print('Python')

Detailed Notes:
1. Definition
2. Syntax
3. Examples
4. Common mistakes
5. Interview points
6. Exam notes.
KeyError

Missing dictionary key

Example:
print('Python')

Detailed Notes:
1. Definition
2. Syntax
3. Examples
4. Common mistakes
5. Interview points
6. Exam notes.
AttributeError

Attribute not found

Example:
print('Python')

Detailed Notes:
1. Definition
2. Syntax
3. Examples
4. Common mistakes
5. Interview points
6. Exam notes.
ImportError

Module loading problem

Example:
print('Python')

Detailed Notes:
1. Definition
2. Syntax
3. Examples
4. Common mistakes
5. Interview points
6. Exam notes.
ModuleNotFoundError

Module unavailable

Example:
print('Python')

Detailed Notes:
1. Definition
2. Syntax
3. Examples
4. Common mistakes
5. Interview points
6. Exam notes.
ZeroDivisionError

Division by zero

Example:
print('Python')

Detailed Notes:
1. Definition
2. Syntax
3. Examples
4. Common mistakes
5. Interview points
6. Exam notes.
FileNotFoundError

File missing

Example:
print('Python')

Detailed Notes:
1. Definition
2. Syntax
3. Examples
4. Common mistakes
5. Interview points
6. Exam notes.
IOError

Input output issue

Example:
print('Python')

Detailed Notes:
1. Definition
2. Syntax
3. Examples
4. Common mistakes
5. Interview points
6. Exam notes.
Exception Handling

try except

Example:
print('Python')

Detailed Notes:
1. Definition
2. Syntax
3. Examples
4. Common mistakes
5. Interview points
6. Exam notes.
finally block

Always executes

Example:
print('Python')

Detailed Notes:
1. Definition
2. Syntax
3. Examples
4. Common mistakes
5. Interview points
6. Exam notes.
raise keyword

Custom exception generation

Example:
print('Python')

Detailed Notes:
1. Definition
2. Syntax
3. Examples
4. Common mistakes
5. Interview points
6. Exam notes.
Custom Exceptions

User defined exceptions

Example:
print('Python')

Detailed Notes:
1. Definition
2. Syntax
3. Examples
4. Common mistakes
5. Interview points
6. Exam notes.
Interview Questions

Difference list vs tuple

Example:
print('Python')

Detailed Notes:
1. Definition
2. Syntax
3. Examples
4. Common mistakes
5. Interview points
6. Exam notes.
MCQs

Examples and answers

Example:
print('Python')

Detailed Notes:
1. Definition
2. Syntax
3. Examples
4. Common mistakes
5. Interview points
6. Exam notes.
Coding Examples

Programs with outputs

Example:
print('Python')

Detailed Notes:
1. Definition
2. Syntax
3. Examples
4. Common mistakes
5. Interview points
6. Exam notes.

You might also like