In Python a virtual environment is an environment in which Python libraries, interpreter and scripts installed are isolated from those installed in other virtual environments.
Category: Python
Python Exception Handling
In programming languages Exception handling is the process of responding to unwanted or unexpected events when a computer program runs. Exception handling helps a programmer in dealing with such events to avoid the program or system crash. If these events are not handled properly it will disrupt the normal operation of a program
Reading and Writing JSON to a file
JSON is the abbreviation of JavaScript Object Notation. It means that a script (executable) file which is made of text in a programming language, is used to store and transfer the data. Python supports JSON through a built-in package called JSON.
Handling CSV files in Python
CSV stands for “Comma Separated Values.” It is the simplest form of storing data in tabular form as plain text. It is important to know to work with CSV because we mostly rely on CSV data in our day-to-day lives as data scientists.
File Handling in Python
Python programming language has various functions and statements for working with a file. The with statement and open() function are two of those statements and functions. Here we will discuss how we can use both statements to work with files in Python.
Classes in Python
Python is an object-oriented programming language. Unlike procedure-oriented programming, where the main emphasis is on functions, object-oriented programming stresses on objects. A class is a user defined blueprint or prototype from which objects are created. Classes provide a means of bundling data and functionality together.
While Loop in Python
In programing language we use while loop to iterate over a block of code as long as the test expression (condition) is true. When the condition becomes false, the line immediately after the loop in the program is executed.
Python Global vs Local Variables
Global variables are those which are not defined inside any function and have a global scope whereas local variables are those which are defined inside a function and its scope is limited to that function only.
Python Functions
In programming, a function is a reusable block of code that executes a certain functionality when it is called. Functions are away to achieve the modularity and reusability in code. Modular programming is the process of subdividing a computer program into separate sub programs. Reusability is using already developed code according to our requirement with out writing from scratch.