PYTHON

Global and Local Variables | Python

Introduction Global variables are the one that are defined and declared outside a function and we need to use them inside a function. If a variable with same name is defined inside the scope of function as well then it will refer variable given inside the function only and not [...]

2019-10-04T19:34:11+05:30Categories: Programming|Tags: |

__name__ | Python

Since there is no main() function in Python, when the command to run a python program is given to the interpreter, the code that is at level 0 indentation is to be executed. However, before doing that, it will define a few special variables. __name__ is one such special variable. [...]

2019-10-04T18:38:10+05:30Categories: Programming|Tags: |

String | Python

Introduction Strings are arrays of bytes representing Unicode characters. However, Python does not have a character data type, a single character is simply a string with a length of 1. Creating String Strings can be created by enclosing characters inside a single quote or double quotes. Even triple quotes can [...]

2020-02-23T15:49:48+05:30Categories: Programming|Tags: |

Install Package Using pip in Python

pip is a package management system used to install and manage software package for Python. If you have installed Python 3.4 or later, pip is included with Python and should already be working on your system. To install or upgrade pip, securely download get-pip.py. Then run the following (which may require administrator access): [...]

2022-05-26T19:30:52+05:30Categories: Programming|Tags: |
Go to Top