Chandu yadav has Published 1163 Articles

Python program to print all the common elements of two lists.

Chandu yadav

Chandu yadav

Updated on 30-Jul-2019 22:30:23

874 Views

Given two lists, print all the common element of two lists. Examples − Input : L1 = [5, 6, 7, 8, 9] L2 = [5, 13, 34, 22, 90] Output : {5} Explanation The common elements of both ... Read More

Chaining comparison operators in C#

Chandu yadav

Chandu yadav

Updated on 30-Jul-2019 22:30:23

390 Views

C# has many operators that work on the left-right and righ-left associativity. Chanining depends on the left-to-right associativity on operators with same precedence. Operator precedence determines the grouping of terms in an expression. This affects evaluation of an expression. Certain operators have higher precedence than others do; for example, the ... Read More

Python GNU readline Interface

Chandu yadav

Chandu yadav

Updated on 30-Jul-2019 22:30:23

619 Views

The readline is UNIX specific module. It defines a number of functions to read and write history files in easier way from python interpreter. We can use this module directly or using the rlcompleter module. This module settings may affect the built-in input() method prompt and also the interactive ... Read More

FILTER_VALIDATE_IP constant in PHP

Chandu yadav

Chandu yadav

Updated on 30-Jul-2019 22:30:23

448 Views

The FILTER_VALIDATE_IP constant validates an IP address. Flags FILTER_FLAG_IPV4 − The value must be a valid IPv4 address FILTER_FLAG_IPV6 − The value must be a valid IPv6 address FILTER_FLAG_NO_PRIV_RANGE − The value must not be within a private range FILTER_FLAG_NO_RES_RANGE − The value must not be within a reserved ... Read More

What I have to study to make a career in robotics?

Chandu yadav

Chandu yadav

Updated on 30-Jul-2019 22:30:23

69 Views

To study robotics, you must have a degree in engineering. To make a career in this profession, you should acquire the knowledge of the related fields like electronics, mechanics, and computer science.

Python Heap Queue Algorithm

Chandu yadav

Chandu yadav

Updated on 30-Jul-2019 22:30:23

268 Views

The heap data structures can be used to represents a priority queue. In python it is available into the heapq module. Here it creates a min-heap. So when the priority is 1, it represents the highest priority. When new elements are inserted, the heap structure updates. To use this module, ... Read More

Secure Hashes and Message Digest in Python

Chandu yadav

Chandu yadav

Updated on 30-Jul-2019 22:30:23

1K+ Views

For the secure hash and message digest process, we should use the hashlib module. This module implements a common interface for different secure hash algorithm like SHA1, SHA224, SHA256, SHA512 etc. Also the RSA’s MD5 algorithm. Older algorithms are known as the Message Digest and the new methods are called ... Read More

How to dynamically allocate a 2D array in C?

Chandu yadav

Chandu yadav

Updated on 30-Jul-2019 22:30:23

15K+ Views

A 2D array can be dynamically allocated in C using a single pointer. This means that a memory block of size row*column*dataTypeSize is allocated using malloc and pointer arithmetic can be used to access the matrix elements. A program that demonstrates this is given as follows. Example Live Demo ... Read More

Convenient Web-browser controller in Python

Chandu yadav

Chandu yadav

Updated on 30-Jul-2019 22:30:23

791 Views

To display web based documents to users by using python, there is a module called webbrowser. It provides high level interface to handle web documents. On UNIX based system, this module supports lynx, Netscape, Mosaic etc browsers. For Windows and Macintosh, it uses the standard browsers. To use this module, ... Read More

Which is faster between C++ and C#?

Chandu yadav

Chandu yadav

Updated on 30-Jul-2019 22:30:23

208 Views

C++ is a middle-level language. It was developed by Bjarne Stroustrup in 1979. It is just an enhancement to C language and an object-oriented language. C# is modern and object-oriented language developed by Anders Hejlsberg. It is a part of the .NET framework. It is designed for Common Language Infrastructure ... Read More

Advertisements