Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Programming Articles - Page 114 of 3366
440 Views
What do you understand by a centered tetrahedral number? Let’s explore it in this article. Firstly, what is a tetrahedral number? A tetrahedral number is a figurate number that represents the number of spheres in a tetrahedron. It is also known as a triangular pyramid number. A tetrahedron is a three−dimensional geometric shape that has four triangular faces, six edges, and four vertices. To find the nth tetrahedral number, you can use the formula: Tn = (n * (n + 1) * (n + 2)) / 6 For example, the first few tetrahedral numbers are: 1, 4, 10, ... Read More
312 Views
What do you understand by Centered Square Number? Let’s decode in this article. Firstly, what is square number? A square number, also known as a perfect square, is a non−negative integer formed by multiplying an integer by itself. A square number, in other words, is the result of multiplying a number by itself. For example, 1, 4, 9, 16, 25, 36, 49, 64, 81, and 100 are all square numbers. The sequence of square numbers can be represented by the formula n^2, where n is a positive integer. For instance, the first five square numbers are 1^2 = 1, 2^2 ... Read More
471 Views
What do you understand by a centered pentagonal number? Let’s decode in this article. First of all, what is a pentagon? You must be aware of this term. To recall, A pentagon is a geometric shape with five straight sides and five angles that is two−dimensional. The Greek terms "penta, " which means "five, " and "gonia, " which means "angle, " are the origin of the word "pentagon." All of the sides and angles make up a regular pentagon (equal in measure). The sum of all the angles of a regular pentagon, which has 108 degrees for each angle, ... Read More
350 Views
What do you mean by a Centered octahedral number? Let’s decode. Firstly, what is an Octahedron? An octahedron is an eight−sided, equilateral triangle−shaped three−dimensional geometric shape. With 8 vertices, 12 edges, and 6 square faces, it is a polyhedron. One of the five Platonic solids, which are regular, convex polyhedra with symmetrical vertex arrangements and identical faces, is the octahedron. The octahedron has a variety of fascinating characteristics and uses, including crystallography, where it is used to describe the structure of certain crystals, and computer graphics, where it is used to model objects in three dimensions. Numerous other natural phenomena, ... Read More
344 Views
What do you understand by the term centered hepatgonal number? Let’s decode in this article. First of all, what is a heptagonal number? A heptagonal number is a figurate number representing the number of dots that can be arranged to form a regular heptagon (a seven−sided polygon). The formula for the nth heptagonal number is: n(5n−3)/2, where n must be a positive integer. The first few heptagonal numbers, for example, are: 1 is the first heptagonal number (corresponding to a heptagon with one dot). 7 is the second heptagonal number (corresponding to a heptagon with 7 dots). 18 is ... Read More
451 Views
What do you understand by the term `Cake Number`? Let's decode it in this article. The term "cake number" describes a concept of discrete geometry and combinatorics−related mathematical idea. It is built on the concept of the Lazy caterer's sequence. What is the Lazy Caterer's Sequence? The maximum number of pieces a disk (cake or pizza) can be sliced into using a specific number of straight slices is known as the Lazy caterer's sequence. Although it mentions a disk, we will consider a cake in our example. One straight cut can divide a cake into two pieces, two straight cuts ... Read More
2K+ Views
The datetime.date class in Python provides a convenient way to represent and manipulate dates. The fromisoformat() method lets in you to create a date object from a string in the ISO layout. The fromisoformat() feature will parse a string in ISO 8601 format and create a date object that represents that date. this could be beneficial in numerous scenarios, consisting of whilst you want to parse dates from log files or whilst working with APIs that offer dates in ISO 8601 format. Syntax datetime.date.fromisoformat(date_string) The parameter, date_string is a string that represents a date in the ISO format ... Read More
344 Views
Numpy is an open-source library in Python used for numerical computing, scientific computing, data analysis, and machine learning applications. This library has powerful array methods and tools to perform vector and matrix operations. You must install the NumPy module manually since it is not a component of the default Python library. The Python package manager pip can be used to accomplish this by executing the following command − pip install numpy We will use NumPy’s busday_count() function to calculate the required count of weekdays. This will calculate the number of business days (Monday to Friday) between 2 specific dates. ... Read More
727 Views
Numpy is often used along with packages such as SciPy and matplotlib in python. Additionally, arrays in Numpy are faster compared to lists in Python due to which this module is extensively used for complex mathematical algorithms and problems. It has various functions, and methods, to make our task easy and simple for matrix operations. In Numpy arrays there are two types of array − Single Dimensional Array Multi-Dimensional Array Single Dimensional Array (1D array) The datatypes of the elements stored in the array are - strings, integers, boolean or floating points. These arrays are called single or ... Read More
3K+ Views
Python users frequently work with files, particularly when altering, reading, or writing data to files. However, identifying a file's path is necessary before performing any operation on it. Simply said, a file's path refers to the system location or directory where it is kept. There are four major types of methods to use to find the path to the given file in Python − Pathlib Module OS Module os.path.join() method os.getcwd() method Approach 1: Using the Pathlib Module The pathlib module in Python makes everything very feasible and efficient to make file paths. absolute() − An absolute path ... Read More