Python | swapcase() Function It is a string's function that converts all uppercase characters into lowercase and vice versa. It automatically ignores all the non-alphabetic characters.   string = "IT IS IN LOWERCASE." print(string.swapcase())  

Last updated 1 year, 11 months ago | 517 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 1 year, 11 months ago | 513 views

Tags:- Python

Windows | Set path and environment variables in Windows 11 Press the + to access the Power User Task Menu. In the Power User Task Menu, select the System option. In the System window, scroll to the bottom and click the About option. In the System …

Last updated 1 year, 8 months ago | 506 views

Tags:- Windows

Python | Lambda function A lambda function is a small anonymous function. This function can have any number of parameters but, can have just one statement.     Syntex:  lambda arguments : expression   a = lambda x,y : …

Last updated 1 year, 11 months ago | 506 views

Tags:- Python

In Django, static files are the files that serve the purpose of additional purposes such as images, CSS, or JavaScript files. Static files managed by “django.contrib.staticfiles”. There are three main things to  set up static …

Last updated 1 year, 8 months ago | 505 views

Tags:- Django

Python | enumerate() Function The enumerate() function is used to iterate through the sequence and retrieve the index position and its corresponding value at the same time.   lst = ["A","B","C"] print (list(enumerate(lst))) #[(0, 'A'), (1, 'B'), …

Last updated 1 year, 11 months ago | 503 views

Tags:- Python

Python | Join all items of a list to convert into a single string >>> x = ["Python", "Online", "Training"] >>> print(" ".join(x)) Python Online Training  

Last updated 1 year, 8 months ago | 499 views

Tags:- Python Django

If bool(a) returns False, then x is assigned the value of b.

Last updated 1 year, 11 months ago | 496 views

Tags:- Python

Django | Request/Response Cycle Whenever a request is received by the Django server. The Request is processed by various middlewares and is passed to the URL Router. Then, the server looks for a matching URL in the urlpatterns …

Last updated 1 year, 11 months ago | 492 views

Tags:- Django

Python | Pickling, and Unpickling The pickle module accepts any Python object and converts it into a string representation and dumps it into a file by using the dump function, this process is called pickling. …

Last updated 1 year, 11 months ago | 490 views

Tags:- Python

Python | lists, and tuples Lists and Tuples both are sequence data types that can store a collection of objects in Python. They are both heterogeneous data types means that you can store any kind of …

Last updated 1 year, 11 months ago | 485 views

Tags:- Python

Yes, it is possible if the base class is instantiated by other child classes or if the base class is a static method.

Last updated 1 year, 11 months ago | 483 views

Tags:- Python

The .py files are the python source code of a program. While the .pyc files contain the bytecode of the python files. We get bytecode after compilation of .py file (source code). The .pyc files are not …

Last updated 1 year, 8 months ago | 476 views

Tags:- Python

A few common security issues that can be avoided by using Django are: Clickjacking Cross-site scripting and SQL injection

Last updated 1 year, 8 months ago | 468 views

Tags:- Python

Django | Meta Class A Meta class is simply an inner class that provides metadata about the outer class in Django. It defines such things as available permissions, associated database table name, singular and plural versions …

Last updated 1 year, 11 months ago | 463 views

Tags:- Django