Python enumerate() function

Sometimes you may want to track the position of items in an iterable. You can do this in various ways, for example, you can create a counter variable and initialize

Python Iterator vs Iterable

In Python, you might come up with the terms like iterator, iterable, iteration, etc. This can be confusing for many of you especially for those who are beginners. So in this article, you will see the differences among all of them. Iterable The iterable in Python is anything you can

Python Set Comprehension

A Python set is an unordered collection of unique items that is iterable, mutable, and has no duplicate items. You can perform mathematical set operations such as union, intersection, set difference, etc on Python sets. The set comprehension is similar to the Python list or dictionary comprehension it provides a

Python Dictionary Comprehension

Python dictionary data type is used to store data in key:value pairs. It can be created in two ways first is by placing the comma-separated items inside curly braces and the second is to create using dict() function. For example – users={1:’Ankit’, 2:’Sumit’, 3:’John’, 4:’Vinay’} Python dictionary comprehension provides a shorter

Python List Comprehension

A python list can hold multiple different types of values in a single variable. In our previous article on Python list data type, we had discussed the Python lists, how to create them, and different operations that can be performed on them. Python list comprehension provides a shorter syntax to

How to Compile and Run C Program on a Linux Terminal

This post was last updated on April 17th, 2021 at 11:08 pmLinux is the best platform to learn C programming because it is an open source platform and you will find so many documentation on the internet if you need help. The second reason is that it provides built-in C