Created
December 13, 2016 15:20
-
-
Save vellamike/4a0fa1ecaf735964f31ee0a1a5457c8b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Pairing exercise | |
Draw the below on paper, showing some Event categories along with some events. | |
``` | |
[ Sky tickets ] | |
| | |
| | |
[ Cricket ] --- [ Music ] ---- [ Boxing ] | |
| | | |
| | | |
|------- [ Some Music event] | |
| | | |
| | | |
| [ Cricket event 2] | |
| | |
| | |
[ Cricket event 1 ] | |
``` | |
#### The exercise is to write some python code to do the following: | |
1. Add an event | |
2. Get all events | |
3. Add a category | |
4. Add an event to a category | |
5. Get all "Cricket" events | |
6. Get all events in the same category as an event | |
Feel free to add more |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment