Posts

Showing posts from January, 2024

LEARNING DATA SCIENCE , PART 3

 DATA TYPES IN PYTHON   1. NUMBERS - Integers i.e whole numbers , not decimal 2. FLOAT Floats are the decimal numbers . Example - 4.3 , 5.7  3. Complex Number  x + iy  , here x = real number and y = imaginery 4. Boolean Boolean is either true or false  5. SET  Set is a collection of data Set only contains unique elements , repititions are not allowed. 6. DICTIONARY  It states in the from of key and it's value terms. {name : 'John , Age:'25' , 'city':25 , 'New year'} 7. STRING It is the most commonly used data type. Write in between of commas "   ". 8. LIST  List is collection of items and it can have duplicate items. my_list = [1,2,3,4,5] 9. TUPLES  Tuples are immutable ( means we can not modify the code once written). 10. NONE   When the type of data does not exist that is known as NONE . Now, we will move forward to PYTHON OPERATORS  1. ARITHMETIC OPERATORS #ADDITION (+)  a + b (operand), here a = ope...