Get a list of all subdirectories in the current directory in Python

By Prachi Pandey

Among the methods Python provides for getting a list of the subdirectories within a given directory, there are a few methods that can be used in this tutorial. Here are three appro.... Read More

Get the next element while iterating through a list in Python

By Prachi Pandey

Iterating through a list in Python is a common task you may need to do in your code. If you are iterating through a list of elements, you often need to retrieve the next element. Â.... Read More

Python Dictionaries to CSV with examples

By Naman Maheshwari

In this Python Tutorial, we will discuss the Python Dictionaries to CSV (Comma-Separated-Values)  with some examples. Python Dictionary to CSV Here, we first need to understand th.... Read More

Convert int to string and vice-versa in Swift

By Khushi Aswani

In this tutorial, we will learn how to convert any integer to a string and string to an integer using various approaches in Swift. Convert Int to string in Swit To work on this we .... Read More

Convert comma separated string to vector in C++

By Harsh Singh

Given a comma-separated string, we want to convert it to a vector in C++. Example: String: "Hey,there,Howare,You" Vector elements: "Hey" "There" "Howare" "You" First Approach: In t.... Read More

Get the nth character of a string in Swift

By Khushi Aswani

In this tutorial, we will work on the task of getting the nth character from a given string as the title says it all, to retrieve a particular character present at a specific posit.... Read More

Check whether a binary tree is a full binary tree or not in Python

By Ambuj Verma

In this tutorial, we learn about the Binary tree and how to check whether a given Binary tree is a full Binary tree or not. Example:                     1:        (a).... Read More

Random Tree generator using Prufer Sequence in C++

By Monjil Chakraborty

First, we need to understand the question and what is asked here. We are here provided with an integer N first. The task we have in our hands here is to create a Prufer Sequence, .... Read More

Related Posts