All Questions

Python

Follow
Showing 41 - 50 out of 170 Questions
85 Views

how can I learn python programming language any website

Moumoyee Chakraborty 2nd Nov, 2021

Learning Python Programming is one of the common trends now-a-days as it gives you opportunities to explore your career goals. Considering the pandemic situation if you wish to learn this then you can try for online courses offered by Coursera, Udemy or HP. The teachers are very interactive there and

183 Views

What is pandas in python programming

Nitin Mereddy 24th Oct, 2021

Pandas is an open source python library which supports data structures for data based operations associated with data analyzing and data Manipulation . Pandas with its rich sets of features fits in every role of data operation,whether it be related to implementing different algorithms or for solving complex business problems.

110 Views

What is functional programming? Does Python follow a functional programming style? If yes, list a few methods to implement functionally oriented programming in Python

Nitin Mereddy 24th Oct, 2021

Functional programming is a coding style where the main source of logic in a program comes from functions.


Incorporating functional programming in our codes means writing pure functions.


Pure functions are functions that cause little or no changes outside the scope of the function. These changes are referred to as

54 Views

What is slicing in Python programming

Nitin Mereddy 24th Oct, 2021

Slicing is a process used to select a range of elements from sequence data type like list, string and tuple. Slicing is beneficial and easy to extract out the elements. It requires a : (colon) which separates the start index and end index of the field. All the data sequence

59 Views

How is Multithreading achieved in Python?

Nitin Mereddy 24th Oct, 2021

Python has a multi-threading package ,but commonly not considered as 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 that only one of your ‘threads’ can execute at one time.The process makes

129 Views

How does Python Flask handle database requests?

Nitin Mereddy 24th Oct, 2021

Flask supports a database-powered application (RDBS). Such a system requires creating a schema, which needs piping the schema.sql file into the sqlite3 command. Python developers need to install the sqlite3 command to create or initiate the database in Flask.


Flask allows to request for a database in three ways:


before_request():

48 Views

What is self in Python programming language

Nitin Mereddy 24th Oct, 2021

Self is an object or an instance of a class. This is explicitly included as the first parameter in Python. On the other hand, in Java it is optional. It helps differentiate between the methods and attributes of a class with local variables.


The self variable in the init method

303 Views

What advantages do NumPy arrays offer over (nested) Python lists?

Nitin Mereddy 24th Oct, 2021

Nested Lists :

  • Python lists are efficient general-purpose containers that support efficient operations like insertion,appending,deletion and concatenation.
  • The limitations of lists are that they don’t support “vectorized” operations like element wise addition and multiplication, and the fact that they can contain objects of differing types mean that Python must store
618 Views

Whenever Python exits, why isnt all the memory de-allocated?

Nitin Mereddy 24th Oct, 2021

Whenever Python exits, especially those Python modules which are having circular references to other objects or the objects that are referenced from the global namespaces are not always de-allocated or freed.

It is not possible to de-allocate those portions of memory that are reserved by the C library.

On exit,

108 Views

What do file-related modules in Python do? Can you name some file-related modules in Python?

Nitin Mereddy 24th Oct, 2021

Python comes with some file-related modules that have functions to manipulate text files and binary files in a file system. These modules can be used to create text or binary files, update their content, copy, delete, and more.

Some file-related modules are os, os.path, and shutil.os. The os.path module has

The question have been saved in answer later, you can access it from your profile anytime. Access now