Govind has Published 8 Answers

How does mkdir -p work in Python?

Govind

Govind

Updated on 10-Oct-2022 09:13:28

A directory in Python is defined as collection of multiple files and sub-directories. And by using mkdir –p command we are going to create sub-directories of a directory. If the parent directory doesn’t exist, the command will create parent directory first; but if it already exists any error message isn’t ... Read More

How to print a Python dictionary randomly?

Govind

Govind

Updated on 10-Oct-2022 09:09:14

The data in a dictionary of python is stored in pairs of keys and values. So, when these values are randomized, both keys and values are printed together randomly. In this article, we will demonstrate how to print Python dictionary randomly in various ways. Using shuffle() function Python dictionaries can ... Read More

How to merge multiple Python dictionaries?

Govind

Govind

Updated on 25-Aug-2022 12:01:32

First, put all dictionary objects in a list object.Initialize a dictionary object to empty directory. This is intended to contain merged directoryExampleUpdate it with each directory item from the list>>> d=[{'a':1, 'b':2, 'c':3}, {'a':1, 'd':2, 'c':'foo'}, {'e':57, 'c':3}] >>> d [{'a': 1, 'b': 2, 'c': 3}, {'a': 1, 'd': 2, ... Read More

Built-in functions supported by dictionary view objects

Govind

Govind

Updated on 25-Aug-2022 11:38:58

The dictionary view objects include dict.keys(), dict.values(), dict.items(). They are used to obtain the dynamic view of the dictionary elements in python. These objects reflect the changes made to the dictionary. To retrieve some data or perform various operations on these view objects, there are 5 build-in functions in python ... Read More

What are Python dictionary view objects?

Govind

Govind

Updated on 25-Aug-2022 11:28:05

A dictionary is a data structure that is used for storing a group of objects. A dictionary is having set of keys and every key has a single allocated value. When presented with a key, the dictionary will return the allocated value. In the python dictionaries, some of the methods ... Read More

Broken User Authentication

Govind

Govind

Updated on 25-Aug-2022 10:27:28

What is broken user authentication? Poor implementation of API authentication allows attackers to predict other user’s identities. In more general terms, broken user authentication occurs when an API having an authentication system but does not in working, or that the implemented authentication system fails in some cases, allowing attackers to ... Read More

Broken Object-Level Authorization

Govind

Govind

Updated on 25-Aug-2022 10:24:46

What is Broken Object-Level Authorization? Broken object-level authorizations (BOLA) is also known as insecure direct object reference (IDOR). This issue occurs when the server does not properly verify if the currently authorized user or an unauthorized user is accessing data to read, update or delete an object to which they ... Read More

Types of Application Programming Interface (API) and their Security vulnerabilities.

Govind

Govind

Updated on 25-Aug-2022 10:21:15

What Is Application Programming Interface. API is the acronym for Application Programming Interface, API is a set of defined rules that explain how computers or applications communicate with one another. APIs implemented between application and web server, acting as an intermediary layer that processes data transfer between systems. Types of ... Read More

1
Advertisements