Rabecca Fatima

Find the Reverse of a Number

When a number is reversed, the digits are rearranged in reverse order, starting with the last digit, then the second-to-last…

3 years ago

Iterate over a list in Python

In Python, there are several different ways to iterate through a list. Let's examine every method for iterating over a…

3 years ago

Python Lists

As we have already seen in Data Types in Python that Python Lists are just like dynamically sized arrays, declared in…

3 years ago

String Functions – II

Table of Python String Methods. Function Name Descriptioncapitalize()The string's first character is changed to an uppercase (capital) letter.casefold()Implements caseless string matchingcenter()Add…

3 years ago

String Functions in Python

Built-in String Functions: Many functions are built into the Python interpreter and are always available. You'll see a few that…

3 years ago

Strings in Python

A Python string is a collection of characters enclosed by single, double, or triple quotes. The string is an immutable…

3 years ago

Armstrong Number in C++

What is Armstrong Number? The Armstrong number is a number that is equal to the sum of its digits' cubes.…

3 years ago

Factorial of a given Number

What is Factorial of a number? The product of all positive descending integers is the factorial of n. n! represents…

3 years ago

Data Types in Python

The classification or categorization of data items is referred to as data types. It represents the type of value that…

3 years ago

Program to Find GCD

The largest number that divides two or more numbers is the Greatest Common Divisor (GCD) for those numbers. For example:…

3 years ago