Zeller's Congruence - Find the Day for a Date in Python7 Mar 2025 | 3 min read An Introduction to Zeller's CongruenceA technique called Zeller's Congruence can be used to determine the day of the week for any given Julian or Gregorian calendar date. This formula uses integer calculations based on the year, month, and day to calculate which day of the week a given date falls on. Christian Zeller developed a technique known as Zeller's congruence, which allows one to determine the day of the week for any date in the Julian or Gregorian calendar. One may argue that it is predicated on the conversion of the calendar date to Julian's day. The day of the week for every given date may be found using an algorithm. It is as follows for the Gregorian calendar: ![]() In terms of the Julian calendar, it's ![]() Where:
NOTE: In this procedure, January and February are accounted for as months 13 and 14 of the preceding year. For instance, on February 2, 2010, the date is calculated by the algorithm as the second day of the fourteenth month of 2009 (02/14/2009 in DD/MM/YYYY format). |
A function that offers access to many methods for visualizing univariate and bivariate data distributions is seaborn. displot(). Similar to other functions in the Seaborn library, this function enables the charting of data subsets that are determined by semantic mapping between many subplots. A distribution plot...
6 min read
The re.findall() method in Python returns all occurrences of a pattern in a string. You can look at it as scanning a sentence for a word that has a defined "format". re.findall() finds all matches with the help of regular expression (regex) for defining the...
4 min read
Python is a high-level, interpreted programming language recognized for its simplicity and readability, making it perfect for beginners and experienced builders. Created via Guido van Rossum and primarily released in 1991, Python emphasizes code readability with its use of widespread indentation. It helps with a...
4 min read
? CSV files are structured as a table with rows and columns. Each line in the file represents a record, and a comma separates each value. The first row is usually reserved for column headers, which describe the content of each column. It is essential to...
4 min read
In this tutorial, we'll look at a wide range of Python projects, suitable for everybody from beginners to experienced developers. These projects are designed to give you hands-on experience with Python, allowing you to develop applications that are practical. Either you're just getting started with...
22 min read
Introduction: In this tutorial, we are learning about to create a dictionary of Lists in Python. Dictionary in Python represents the collection of data stored in the form of key-value pairs. We may provide different information datatypes based on the value of a key. It helps...
7 min read
In Python programming, a list is a dynamic data structure containing numerous items within a solitary variable. The characteristics of the list include being a structured, editable, and alterable series of elements. Each entry in a list is referred to as an element. Square brackets...
5 min read
In pandas, pipelines are very important in situations when we need to transform the complete data of the dataframe. It can help in manipulating a lot of data easily. In general terms, the pipeline is used when we have a sequence of operations that need...
8 min read
? Writing, reading, and creating files are all incorporated into Python. Binary files (written in binary language, 0s and 1s) and text files are the two types of files that may be processed in Python. There are six different ways to access files. Read only ('r') is...
4 min read
What are Decimal Numbers? Decimal Numbers are the number system that uses 10 digits, from 0 to 9. The base of the decimal number system is 10. It is also known as the base-10 number system. It is used to form digits with different combinations. Each...
4 min read
We request you to subscribe our newsletter for upcoming updates.
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India