Tagged: dictionary

0

How To Control Python For Loop with Break Statement?

Python provides for loops in order to iterate over given list, dictionary, array or similar iterable types. During iteration we may need to break and exit from the loop according to current condition. In this tutorial we will look how to break a python for loop with break statement with different examples. Break...

0

How To Loop and Iterate Over Python Dictionary?

Dictionaries provides simple data types with value and key. Dictionary data may be used in an iteration with for loop. By using for we can iterate over dictionary elements easily. In this tutorial we will look different ways to iterate over dictionary elements. Example Dictionary We will use following dictionary type...

0

Python Type Function with Examples

Python provides a lot of different types for programming purposes. While using these structs we may need to decide which variable or identifier is which type. Python provides builtin type function in order to decide given identifier types. We just need to provide the identifier to the type function. Identify Type We...

0

Python Variables and Types

Python programming language provides different data types in order to use data in applications. We generally use variables in order to store our data. As the name suggests variables can be changed during their lifetime. In this tutorial we will look different features and options of Python variables. Create and...

0

In Python Operator Usage Tutorial with Examples

Python provides a lot of operators for comparison, checking existence etc. in operator is very popular operator used to check given values in given variables, list, dictionaries etc. In this tutorial we will look different use cases and examples of in operator. Check List Python lists provides elements in single item like...

0

Python Set Data Structure With Examples

Python provides different structures to hold data. We have all ready looked list and dictionary in this site. Today we will look usage examples and features of python set. Set have same properties and behaviour of mathematical set. Sets have following features unordered means the order is not important and do...

0

Python For Loop Tutorial With Examples and Range/Xrange Functions

For loop is used to iterate over given sequence. Sequence can be a list, dictionary or similar enumerable object for python programming language. For loop is a bit different from other languages like C, C++, Java … For loop in python mainly uses object to iterate but in other languages...

0

Dictionary In Python Tutorial With Examples

Dictionaries is complex data structures those hold information about different type and related information. Dictionaries also called associative memories or associative arrays in different languages. Dictionaries generally format in key and value pair. Keys are used to label and  search and find values. Create Dictionary As we say before we will provide key and...

1

How To Sort Python Dictionary By Value?

We have a dictionary which is read from a file. One field is string other field is number. String fields are unique and used as keys. Sorting by keys is easy but how can we sort them by values Our Dictionary We have the following dictionary which is consist of...

0

Dymerge Dictionary Merge Tool

During penetration test one of the test component is brute forcing critical data like password, hash, key etc. One way to brute force is using dictionaries or word list. There are a lot of dictionary in the internet and we generally need to merge them. Dymerge is a security tool...

Enjoy this blog? Please spread the word :)