Niharika Aitam has Published 168 Articles

What's the best place for python classes in a Django project?

Niharika Aitam

Niharika Aitam

Updated on 15-May-2023 13:46:30

185 Views

Django is one of the frameworks used along with python to create the web pages in an efficient manner. It is also called as the framework included with batteries why because by default the Django framework gives the admin interface and database interface like SQLite 3 etc. It also provides ... Read More

How we can split Python class into multiple files?

Niharika Aitam

Niharika Aitam

Updated on 15-May-2023 13:44:38

2K+ Views

OOPs is abbreviated as object oriented programming language. It helps us to deal with the real time entities with inheritance, polymorphism, encapsulation etc. By using the oops concept we can make the code and functions work together in a better way. Group of objects is called a class. The class ... Read More

How to organize Python classes in modules and/or packages

Niharika Aitam

Niharika Aitam

Updated on 15-May-2023 13:42:15

698 Views

There are different modules or packages in the python classes. When we use their names as it is in the code it will be somewhat clumsy and not good to see. So, we need to organize the python classes in modules and packages. Modules are the group of functions, ... Read More

What are Getters/Setters methods for Python Class?

Niharika Aitam

Niharika Aitam

Updated on 15-May-2023 13:30:49

466 Views

In python we have different methods available to make our work very easy and simple. Among the methods available in python we have two methods namely getter and setter. These methods play a vital role in the object oriented programming language of python to hide the private variables. ... Read More

What is usage of update method in Python dictionary?

Niharika Aitam

Niharika Aitam

Updated on 15-May-2023 13:26:57

264 Views

The update method is one of the methods of dictionary data structure. It is used to update the values in the already created dictionary which means it adds a new key value pair to the dictionary. The updated key and value will be updated at the last. The dictionary is ... Read More

How do we use double quotation in Python?

Niharika Aitam

Niharika Aitam

Updated on 15-May-2023 13:24:16

441 Views

Double quotes are used to represent a string or a character as well as can be used in the print function to print the defined statement as the output. The functionality of the single quotes and double quotes is same. We can use any type quotes as per our requirement. ... Read More

How I can dump a Python tuple in JSON format?

Niharika Aitam

Niharika Aitam

Updated on 15-May-2023 12:46:09

699 Views

JSON can be abbreviated as JavaScript Object Notation. It means a script of a text file in a programming language to transfer and store the data. It is supported by the python programming language using a built-in package named json. It’s text is given in the quoted string format ... Read More

List vs tuple vs dictionary in Python

Niharika Aitam

Niharika Aitam

Updated on 15-May-2023 11:12:02

22K+ Views

In python there are different types of data structures. Among them list, tuple, dictionary. All these three are used to store the data in the python programming language. What is a List? List is one of the data structures available in python which is used to store multiple values in ... Read More

Advertisements