Data Handling Notes
Data Handling Notes
Data Handling
• Data types
• Operators
• Quick python codes
• Following basics are necessary to be a good
programmer
a = 0 + 3.1j
b = 1.5 +2j
2. Strings
"abcd"
'####'
"1234abc"
2. Strings
p=(1, 2, 3, 4, 5)
q=(2, 4, 6, 8)
p=6
q=7
r=8
Mutable and Immutable types
p=6
q=7
r=8
Mutable and Immutable types
p=6
q=7
r=8
p=9
q=8
r=7
Mutable and Immutable types
Three attributes:
1. type
Variable internals
Three attributes:
2. value
Variable internals
Three attributes:
3. id
Operators
Types of operators:
1. Arithmetic operators
2. Relational operators
3. Identity operators
4. Logical operators
5. Bitwise operators
Operators
1. Arithmetic operators
Operators
2. Relational operators
Operators
3. Identity operators
Operators
3. Logical operators
Operators
5. Bitwise operators
Quick recap:
1. Numbers
2. String
3. List and Tuple
4. Dictionary
Quick recap:
1. Numbers
2. String
3. List and Tuple
4. Dictionary
1. Numbers
2. String
3. List and Tuple
4. Dictionary
a = 8.6
b=2
print (a//b)
(a) 4.3
(b) 4.0
(c) 4
(d) error
Quick questions:
(a) x += 5
(b) x *= 5
(c) x = x ** 5
(d) none of these
Quick codes:
Quick codes:
Quick codes:
UNIT RDBMS:
Data
manupulation
using SQL
Thank you!