<jupyter_start><jupyter_text>The second chapter from <NAME>'s book, showing things in Python such as:- Keywords,- variable types,- assigning variables.  **Basic data types in Python**| Nb. | Name | Type | Mutable | Example || -- | -- | -- | --| -- || 1 | Boolean value | **bool** | No | True, False || 2 | Integer | **int** | No | 47 ; 25000 ; 25_00 || 3 | Floating point number | **float** | No | 3.15 ; 2.7e5 || 4 | Complex number | **complex** | No | 3j ; 5 + 9j || 5 | Text | **str** | No | 'raz' ; '''trzy i cztery''' || 6 | List | **list** | Yes | ['alfa' , 'beta' , 'gamma'] || 7 | Tuple | **tuple** | No | (2, 4, 8) || 8 | Bytes | **bytes** | No | b'ab\xff' || 9 | Bytearray | **bytearray** | Yes | bytearray || 10 | Set | **set** | Tes | set([3, 5, 7]) || 11 | Frozenset | **frozenset** | No | frozenset([ 'Adam', 'Ewa']) || 12 | Dictionary | **dict** | Yes | {'imie': 'Jan' , 'nazwisko': 'Nowak'} |  Mutable DefinitionMutable is when something is changeable or has the ability to change. In Python, ‘mutable’ is the ability of objects to change their values. These are often the objects that store a collection of data. Immutable DefinitionImmutable is the when no change is possible over time. In Python, if the value of an object cannot be changed over time, then it is known as immutable. Once created, the value of these objects is permanent.<jupyter_code># keywords

help("keywords")
# To check type of variable: type()

print(type(7))
print(type('abc'))
# To check object of specific type # isinstance()

print(isinstance(7, int))
print(type(7) == int)<jupyter_output>True
True<jupyter_text>Overview of OOP Terminology **Class** − A user-defined prototype for an object that defines a set of attributes that characterize any object of the class. The attributes are data members (class variables and instance variables) and methods, accessed via dot notation. **Class variable** − A variable that is shared by all instances of a class. Class variables are defined within a class but outside any of the class's methods. Class variables are not used as frequently as instance variables are. **Data member** − A class variable or instance variable that holds data associated with a class and its objects. **Function overloading** − The assignment of more than one behavior to a particular function. The operation performed varies by the types of objects or arguments involved. **Instance variable** − A variable that is defined inside a method and belongs only to the current instance of a class. **Inheritance** − The transfer of the characteristics of a class to other classes that are derived from it. **Instance** − An individual object of a certain class. An object obj that belongs to a class Circle, for example, is an instance of the class Circle. **Instantiation** − The creation of an instance of a class. **Method** − A special kind of function that is defined in a class definition. **Object** − A unique instance of a data structure that's defined by its class. An object comprises both data members (class variables and instance variables) and methods. **Operator overloading** − The assignment of more than one function to a particular operator.  Reassignment in Python<jupyter_code>x = 5
x
y = x
y
type(y)<jupyter_output><empty_output><jupyter_text>Reassignments We use Python assignment statements to assign objects to names. The target of an assignment statement is written on the left side of the equal sign (=), and the object on the right can be an arbitrary expression that computes an object. [More info](https://www.geeksforgeeks.org/different-forms-of-assignment-statements-in-python/)<jupyter_code>x = 29
x
y<jupyter_output><empty_output><jupyter_text>List<jupyter_code>a = [2, 4, 6]
a
a[0] = 99
a<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.11049136786188579, 'fraction_numerical': 0.014077025232403718, 'mean_word_length': 4.538235294117647, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, 'https://': 1, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '4', 'dir': 'jupyter-structured-clean-dedup', 'id': '356842', 'license': 'MIT', 'n_tokens_mistral': 1082, 'n_tokens_neox': 1022, 'n_words': 526, 'path': '02. Chapter_/Data Types Values Variables and Names.ipynb', 'repo_name': 'Mikma03/Python_Bill_Lubanovic_BookCodes', 'size': '3773'}