Python Learning Part-19: Python Operators

Operators are special symbols in Python that carry out arithmetic or logical computation. The value that the operator operates on is called the operand, for example, 2+3 output will be 5. here + is operator, 2,3 are operands and 5 is output.Since we have already used some of these operators by now in previous posts earlier, I … Continue reading Python Learning Part-19: Python Operators

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

Learning Python Part-13: Python Strings

Here we are with yet another literal type called as strings. Strings are used in all modern programming languages to store and process textual information. Logically, a string is a sequence of characters. What is a Character?A character is a unit of information as per computer science. Characters consist of graphical shapes, called as Graphemes. Graphemes … Continue reading Learning Python Part-13: Python Strings