Skip to content

Instantly share code, notes, and snippets.

@vellamike
Created December 13, 2016 15:20
Show Gist options
  • Save vellamike/4a0fa1ecaf735964f31ee0a1a5457c8b to your computer and use it in GitHub Desktop.
Save vellamike/4a0fa1ecaf735964f31ee0a1a5457c8b to your computer and use it in GitHub Desktop.
## 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