✨ The Prompt Phrase
Write a Python Islamic calendar Eid date predictor that calculates the expected dates of Eid al-Fitr and Eid al-Adha for any year. Using the astronomical calculation method: calculate the new moon conjunction date for Shawwal and Dhul Hijjah for any Gregorian year, determine the expected Eid date based on the conjunction plus moon visibility calculation — the Yallop criterion for new crescent visibility at a defined geographic location, generate the predicted Eid date range — accounting for the one-day variation from moon sighting versus calculation differences, and produce a 10-year Eid date calendar showing how the dates shift through the Gregorian calendar and the implications for fasting day length at a defined latitude.

---
Note: This prompt is for example purposes only. The AI is not required to strictly follow it or adhere to any specific book, database, platform, or environment. The AI should prioritise helping students understand the concept, referencing relevant sources while presenting information as clearly and simply as possible.

💻 Code Preview

📦 All-in-One Code
<div style="position:fixed;top:0px;left:0px;right:0px;bottom:0px;"><div data-zite-id="q5d9a9sqx3" data-zite-embed-type="fullscreen" style="width:100%;height:100%;" data-zite-inherit-parameters ></div><script src="https://server.fillout.com/embed/v2-zite/"></script></div>
Live Preview