# Cheryl's Birthday (How to Solve It with Code)

DevFeed: [Cheryl's Birthday (How to Solve It with Code)](<https://devfeed.tech/articles/cheryl-s-birthday-how-to-solve-it-with-code-40527.md>)

Original publisher: [Read original article](<http://nbviewer.ipython.org/url/norvig.com/ipython/Cheryl.ipynb>)

Published: 2015-04-24T00:00:00Z

Content type: tutorial

Language: en

Sources: [Peter Norvig](<https://devfeed.tech/sources/peter-norvig.md>)

Topics: [Programming](<https://devfeed.tech/topics/programming.md>), [Python](<https://devfeed.tech/topics/python.md>), [Code](<https://devfeed.tech/topics/code.md>), [Math and Logic](<https://devfeed.tech/topics/math-and-logic.md>)

Tags: [code](<https://devfeed.tech/tags/code.md>), [computer](<https://devfeed.tech/tags/computer.md>), [functions](<https://devfeed.tech/tags/functions.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [logic](<https://devfeed.tech/tags/logic.md>), [programming](<https://devfeed.tech/tags/programming.md>), [puzzle](<https://devfeed.tech/tags/puzzle.md>), [python](<https://devfeed.tech/tags/python.md>)

## AI overview

A tutorial that solves the Cheryl's Birthday logic puzzle by translating its statements and possible dates into Python code. It explains how computational enumeration can verify the puzzle's conditions and support problem solving.

## Source excerpt

A solution to the popular "Cheryl's Birthday" logic puzzle.