https://github.com/markfinal/pyworkshopideas
Throwing around some ideas for Python workshops for 8-13 year olds
https://github.com/markfinal/pyworkshopideas
Last synced: 8 months ago
JSON representation
Throwing around some ideas for Python workshops for 8-13 year olds
- Host: GitHub
- URL: https://github.com/markfinal/pyworkshopideas
- Owner: markfinal
- Created: 2025-05-26T09:12:44.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-06-12T20:41:49.000Z (9 months ago)
- Last Synced: 2025-06-12T21:47:22.825Z (9 months ago)
- Language: Python
- Size: 14.6 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ideas for programming workshops
These are ideas for 45 minute workshops. Not suggesting them all, but maybe pick one or two for different age groups.
## The basics
To give everyone a chance to write a working program, whatever their skill, start with Hello world
* `helloworld.py`
and then extend that into looping forever
* `helloworld_forever.py`
### Extended basics
Once everyone has tried that out, briefly introduce
* variables
* math operations
* lists
* functions
* built in, like asking for a number from the user
* user defined
## Maths
### Factorials
Ask for a number n, calculate n * (n - 1) * (n - 2) * ... * 1
* `factorial.py`
### Fibonacci
The sequence 0, 1, 1, 2, 3, 5, 8, 13, .... so the sum of the previous two Fibonacci numbers.
* `fibonacci.py`
You can see the computer start to slow quite quickly as the numbers grow bigger.
### Sieve of Eratosthenes
Finding prime numbers
* `sieve_of_eratosthenes.py`
### Secret ciphers
Read in a message, encrypt it and share the secret
* `secretmessage.py`
## Graphics
Use PyGame to draw shapes on screen
```
pip install pygame
```
Would suggest giving these as starters-for-ten and the ask is to modify them.
### Draw a landscape
* `pygame_landscape.py`
### Draw a face
* `pygame_face.py`
### Draw shapes
* `pygame_shapes.py`