Arjun Thakur has Published 1109 Articles

Python program to print all sublists of a list.

Arjun Thakur

Arjun Thakur

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

5K+ Views

Given a list, print all the sublists of a list. Examples − Input : list = [1, 2, 3] Output : [], [1], [1, 2], [1, 2, 3], [2], [2, 3], [3]] Algorithm Step 1 : given a list. Step 2 : take one sublist which ... Read More

What are the new changes introduced in C++11?

Arjun Thakur

Arjun Thakur

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

122 Views

C++11 is a version of standard C++ language. It was approved by International Organization for Standardization (ISO) on 12 August 2011 then C++14 and C++17. C++11 makes several additions to the core language. There are some of the new changes introduced in C++11 − nullptr − In the previous ... Read More

Python Unicode Database

Arjun Thakur

Arjun Thakur

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

328 Views

The unicodedata module is used to access all of the Unicode characters using Unicode character databases. In this database, there are character properties of all characters. To use this modules, we need to import the unicodedata module in our code. import unicodedata Unicode Database Methods Some modules of ... Read More

Python Completion function for GNU readline

Arjun Thakur

Arjun Thakur

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

269 Views

Unix readline module has tab completion mechanism. To get these features, we have to use rlcompleter module. It can be used in python’s interactive mode. To use this module, we should import it using − import rlcompleter There is a class called Completer class − Method Completer.complete(text, ... Read More

Python Container Datatypes

Arjun Thakur

Arjun Thakur

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

2K+ Views

In the collections there are some container datatypes, which are alternatives to python’s general purpose built-in containers like dict, list, set etc.Some of the containers are −Sr.No.Container & Description1namedtuple()Used to create tuple subclass with the name field2dequeQueue using list type data3CounterSubclass of dict to count the hash-table objects4ChainMapUsed to create ... Read More

What is the purpose of an access specifier in C#?

Arjun Thakur

Arjun Thakur

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

396 Views

To define the scope and visibility of a class member, use an access specifier. C# supports the following access specifiers. Public Private Protected Internal Protected internal Let us learn about them one by one. Public Access Specifier It allows a class to expose its member variables and member ... Read More

Generate Secure Random Numbers for Managing Secrets using Python

Arjun Thakur

Arjun Thakur

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

291 Views

To generate secure random numbers cryptographically we can use the secrets module in python. This module is helpful to create secure password, account authentication, security tokens or some related secrets. To use the classes and modules of the secrets module, we should import that module into our code. import ... Read More

Python Function to Check UNIX Passwords

Arjun Thakur

Arjun Thakur

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

525 Views

To verify UNIX password, we should use the crypt module. It has crypt(3) routine. It is basically one-way hash function based on the modified DES algorithm. To use the crypt module, we should import it using. import crypt Method crypt.crypt(word, salt) This method takes two arguments. The ... Read More

The fcntl and ioctl System Calls in Python

Arjun Thakur

Arjun Thakur

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

2K+ Views

To control the files and the io, we should use the fcntl module. It is basically one interface to the fcntl() and ioctl() Unix routines. All methods in this module takes one integer or io.IOBase file-descriptor as their first argument. To use this module, we should import it using. ... Read More

Difference between C# and Visual C#

Arjun Thakur

Arjun Thakur

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

2K+ Views

C# and Visual C# are both the same. When you use Visual Studio for C# development, it is called Visual C# .Consider Visual C# as an implementation of C#. Microsoft Visual Studio is an IDE from Microsoft to develop programs, web app, web services, etc. The current version of ... Read More

Advertisements