The two static analysis tools used to find bugs in Python are Pychecker and Pylint. Pychecker detects bugs from the source code and warns about its style and complexity. While Pylint checks whether the module …

Last updated 4 years, 4 months ago | 1780 views

Tags:- Python

Python | Docstring  A documentation string or docstring is a multiline string used to document a specific code segment. The docstring should describe what the function or method does.  

Last updated 4 years, 4 months ago | 1777 views

Tags:- Python

Windows | Set path and environment variables in Windows Vista and Windows 7 On the desktop, right-click the Computer icon and select Properties. or Press the  and right-click the Computer option in the Start menu, and select Properties. Click the Advanced System Settings link in the left column. In …

Last updated 4 years, 2 months ago | 1774 views

Tags:- Windows

Windows | Set path and environment variables in Windows 8 Press the + to access the Power User Task Menu Now, select the System option. Click the Advanced System Settings link in the left column. In the Advanced tab, click the  button. In the Environment Variables window highlight …

Last updated 4 years, 2 months ago | 1769 views

Tags:- Windows

[::-1] is used to inverse the order of a sequence. >>> my_list = [1,2,3,5,6,7,8,9] >>> my_list[::-1] [9, 8, 7, 6, 5, 3, 2, 1]    

Last updated 4 years, 2 months ago | 1768 views

Tags:- Python

Django | Session Framework Using the session framework, you can easily store and retrieve arbitrary data based on the pre-site-visitors. It stores data on the server side and takes care of the process of sending and …

Last updated 4 years, 4 months ago | 1768 views

Tags:- Django

Python | What are decorators A decorator in Python is a function that modifies the behavior of an existing function or class without any modification to the original source code.  A decorator takes another function as its argument and returns yet …

Last updated 4 years, 2 months ago | 1765 views

Tags:- Python

Python | Module and Package Module: The module is a simple Python file that contains collections of functions and global variables and with having a .py extension file. It is an executable file and to organize all …

Last updated 4 years, 4 months ago | 1763 views

Tags:- Python

Introduction: Why PHP Comments Matter Writing code that works is great—but writing code that’s easy to understand is better. This is where PHP comments come in. Comments are crucial for explaining logic, documenting functions, and …

Last updated 1 year, 4 months ago | 1761 views

Tags:- PHP

Django | Disadvantages  Django has the following disadvantages: Django's modules are bulky. It is completely based on Django ORM. Components are deployed together. We must know the full system to work with it.

Last updated 4 years, 4 months ago | 1756 views

Tags:- Django

Django | Check Version  To check for the version of Django installed on your system, you can open the command prompt and enter the following command: python -m django –version You can also try to import …

Last updated 4 years, 4 months ago | 1755 views

Tags:- Django

Python has a multi-threading package, but commonly not considered good practice to use it as it will result in increased code execution time. Python has a constructor called the Global Interpreter Lock (GIL). The GIL ensures …

Last updated 4 years, 4 months ago | 1750 views

Tags:- Python

Using the query method we can print SQL query from the queryset post = Post.objects.all() print(post.query)  

Last updated 4 years, 4 months ago | 1750 views

Tags:- Django

Python | namedtuple A namedtuple will let us access a tuple’s elements using a name/label. We use the function namedtuple() for this, and import it from collections. >>> from collections import namedtuple #format >>> result=namedtuple('result','Physics Chemistry …

Last updated 4 years, 4 months ago | 1749 views

Tags:- Python

Python | ‘is’, ‘not’, and ‘in’ operators is: Returns True if both variables are the same object >>> x = 5 >>> y = 5 >>> z = 1 >>> x is y True >>> x …

Last updated 4 years, 2 months ago | 1744 views

Tags:- Python