How to Iterate over dictionaries using ‘for’ loop in Python

By Kovid Bhatt

In this text, we will see different ways to iterate over dictionaries with the help of a ‘for’ loop in Python. There are several ways of iterating over dictionaries wit.... Read More

The difference between push_back and insert in C++

By HARI HARAN B

The push_back and insert functions insert elements into many STL containers like the vector, list, and deque. In this article, we will compare the differences between the two with .... Read More

How to delete files less than specific size in C++

By Harsh Singh

In this article, we will learn how to delete files that are less than a given specific size from a directory in C++. We will follow the following steps for this – Open the di.... Read More

Remove last element from an array in Swift

By Aakanksha Thakar

This tutorial will see how to delete the last element from an array in Swift. Algorithm to remove last element from an array in Swift Check whether the array has any elements or no.... Read More

Set Height and Width of Tkinter Entry Widget in Python

By Khushi Aswani

In this tutorial, we will discuss setting the height and width of an entry widget in the Tkinter library in Python. A Tkinter library is a GUI package containing various elements l.... Read More

Count number of occurrences of a character in a string in Swift

By Saruque Ahamed Mollick

In this tutorial, I will show you how easily we can count the number of occurrences of a character in a string in Swift. We can easily count the number of strings using .count. let.... Read More

Color text output in Console in C++

By YANNAM SATYA AMRUTHA

In general, when we execute any program in C++ we observe that the output text is in white color on black background. But in C++, we can change the color of the text on the console.... Read More

How to delete empty files from a directory in C++

By Paras Bhargava

Here in this tutorial, we are going to learn how to delete empty files from a directory in C++. The <filesystem> library in C++ 17 provides a very powerful method to iterate .... Read More

Related Posts