The platform module provides an API to get information about the underlying system/platform where our code runs. Information such as OS name, Python Version, Architecture, Hardware information, etc. is exposed via platform module functions. This module does not require installation since it is part of the default libraries that comes with python installation. First, let’s
Python - DesignLinux
How to Install Python IDLE in Linux
IDLE is an Integrated and learning environment created with Python using the GUI Tkinter toolkit. This is mainly used by beginners to get familiar with Python. IDLE is a cross-platform application that works with Mac OS, Windows, and Linux. In windows, IDLE comes by default with the installation. For Mac OS and Linux, we have
Learn Python List Data Structure – Part 1
Data Structure is a collection of data types, the relationship among them and the functions or operations that can be applied on the data. Data type can be string, Integer, Floating value and so on. What is the difference between Mutable/Immutable object? Mutable Objects Objects whose state can be changed once it is created like
Learn Python Tuples Data Structure – Part 2
In this Part 2 of Python Data Structure series, we will be discussing what is a tuple, how it differs from other data structure in python, how to create, delete tuple objects and methods of tuple objects and how tuple differs from the list. Python tuples are similar to list data structure but the main
Learn Python Dictionary Data Structure – Part 3
In this Part 3 of Python Data Structure series, we will be discussing what is a dictionary, how it differs from other data structure in python, how to create, delete dictionary objects and methods of dictionary objects. Dictionary is a built-in implementation of “Python Data Structure” which is a collection of “Key: Value” pairs. Dictionary
Learn Python Set/Frozenset Data Structure – Part 4
In this Part 4 of Python Data Structure series, we will be discussing what is a set, how it differs from other data structure in python, how to create set objects, delete set objects and methods of set objects. A set object is an unordered collection of distinct hashable objects. Set automatically removes duplicate items
Learn Python Sys Module
In this article, we will take a look at the Python Sys Module. There are variables and functions that are maintained by the interpreter and the sys module provides a way of interacting with them. These variables are available until the interpreter is alive. We will have a glance at some of the commonly used
Learn Python Identity Operator and Difference Between “==” and “IS” Operator
This article is mainly curated to explain an important operator in python (“IDENTITY OPERATOR”) and how an identity operator differs (is, is not) from comparison operator (==). IDENTITY OPERATOR Identity operator (“is” and “is not”) is used to compare the object’s memory location. When an object is created in memory a unique memory address is