Learning Python Part-20: Python Modules and Python Package

Python Modules:We use modules to break down large programs into small manageable and organised files. We cannot keep on writing large programs in one python file. This approach may pose challenges like maintaining the code, debugging and few others. Using only one file for entire program may work for small programs and when only one … Continue reading Learning Python Part-20: Python Modules and Python Package

Learning Python Part-18: Python Data Type Conversion

The process of converting the value of one data type (integer, string, float) to another data type is called type conversion. Python has two types of type conversion.Implicit Type ConversionIn Implicit type conversion, Python automatically converts one data type to another data type. This process doesn't need any user involvement.Python avoids the loss of data in Implicit … Continue reading Learning Python Part-18: Python Data Type Conversion

Learning Python Part-16: Python Sets along with Frozenset

Python sets are unordered collection of unique items unlike lists or tuples. Python sets are defined by values separated by comma inside curly braces {}. The sets are mutable so we can add or remove elements to/from it. However, elements in a set are not ordered.Example:a = {1, 2, 3, 4, 5}print(a)           … Continue reading Learning Python Part-16: Python Sets along with Frozenset