Ready for this Easter weekend? Calculate when your next one will be with Python

Many of our members will be enjoying a hard-earned long break this weekend, because of the Easter celebrations around the world. If you’d like to get ahead with planning future Easters, build an Easter calculator!

Python date.time and functions practice

Practise working with datetime and defining functions. The code uses Carl Friedrich Gauss’s algorithm to calculate when the Easter weekend will fall in traditional western and orthodox calendars. Find the Python code here https://app.datacamp.com/workspace/w/aa977c69-a58f-4029-8f94-945ed0baa5e4/edit.

You can also build a visualization to compare western and orthodox Easter periods.

Remember if you want to run the visualisation, you may also need to install plotly. If you’re working on Anaconda you can use:

conda install -c plotly plotly

Anaconda will be able to search their records to find the library for you.

Happy Easter to those who celebrate and have a good weekend all!

Related Articles

Datacamp - Learning Tracks

All IoA members can use the installation-free Data Camp environments to build, practice and test your skills in Data Camp. We have two custom built tracks to allow you to ensure your training is on course to fulfil your career goals. We’ve recommended two tracks of knowledge and analytics study aligned to all of the 7 first years in the Data Competency Framework.

Which Track is for me?

Business analyst with R: This track will take you through spreadsheet skills and BI tools in the early years, and build up your coding skills to use R environments in the later years with more challenging data projects.

Python analyst: This track goes straight into Python coding and will take you all the way to working with unstructured data and deep learning techniques.
Look for the track name and year when you search for a course.
With our custom tracks, we’ve selected the skills that we know employers are looking for but remember that you can also take any of the 300 courses and assessments and projects any time you want and add that to your CPD records, too. You can find a post discussing the aims and structure of the tracks here.

Datacamp - Learning Tracks

All IoA members can use the installation-free Data Camp environments to build, practice and test your skills in Data Camp. We have two custom built tracks to allow you to ensure your training is on course to fulfil your career goals. We’ve recommended two tracks of knowledge and analytics study aligned to all of the 7 first years in the Data Competency Framework.

Which Track is for me?

Business analyst with R: This track will take you through spreadsheet skills and BI tools in the early years, and build up your coding skills to use R environments in the later years with more challenging data projects.

Python analyst: This track goes straight into Python coding and will take you all the way to working with unstructured data and deep learning techniques.

Look for the track name and year when you search for a course.

With our custom tracks, we’ve selected the skills that we know employers are looking for but remember that you can also take any of the 300 courses and assessments and projects any time you want and add that to your CPD records, too. You can find a post discussing the aims and structure of the tracks here


View Learning Tracks


Go To DataCamp