# B2.2.3 and B2.2.4 Stacks and queues
:::info
This is a note part of the coding course for IB Computer Science program. If you want to check out other parts of the same course you can see them in [This link of teaching material](/68GDv_RgT-yh9oERMvdnFw)
:::
For now just go here:
https://hackmd.io/iKS9xt1pTJSGLfcy4lvsdg
It's from the past sillabus but it's mostly the same.
The point of the new syllabus is to be able to use the methods in a stack or a queue or read them.
## Exercise
In an stack s we have this content
| |
| -------- |
| Madrid |
| Berlin |
| Delhi |
| London |
_top of the stack is Madrid_
And then we write this code
```
s.push("Barcelona")
s.push("Serena")
s.pop()
```
### 3D print farm

_source: https://community.octoprint.org/t/project-probably-intelligent-automated-printing-get-as-close-to-lights-out-as-we-can/33377)_
Software for 3D printing queues with web:
https://octoprint.org/
## Resources
Deque (deck)
https://www.youtube.com/watch?v=m3JgSV1Obn8