
What we’re about
Welcome! London Business Analytics Group (LBAG) is a popular community data and analytics interest group. We started in July 2014 and have had so far over 150 talks and events. We are open to all and all our events are free. Our in-person events are held in central London. We started online during the lockdown and our audience is now from around the world.
Check out highlights of our talks on our YouTube channel: www.youtube.com/LondonBusinessAnalyticsGroup
Upcoming events (2)
See all- Python Foundation Course (Session 1 of 6)Link visible for attendees
This is a hands-on tutorial-style foundation course in Python course over six Monday evenings. It is suitable for beginners and people who have not coded before. Over the six weeks, we design and code the snake game step by step. This is an online (on Teams) course.
The best way to learn Python is to write a classic game such as snake. This may seem a frivolous exercise compared to a more serious use case of, for example, data analysis. However, writing a game like this one forces us almost immediately to use many of the features of the language. We hope this will more fun and interesting than a more traditional approach, and more relevant especially to people who have not coded before.
In the course, we start by creating variables and constants to set up our screen and snake. We implement our snake firstly as a single square then later as a Python data structure (a list of tuples). We use list methods, such as append and pop, to create our snake. To keep our code organised and readable, we create a Snake class so that our snake can move and eat. We use looping, (with the for and while keywords) so that the snake responds to our key presses and conditional flow (with the if keyword) so that it eats and grows when it finds food. We learn how to install and import packages such as the pygame package that provides the basic 2D game functionality.
This is the first time we have run this course - expect a few bumps along the way.
The provisional timetable looks like this
2nd June: Session 1 - Setup
Install Python and the VSCode editor on a laptop, then create a Python environment, install some packages and write/run a tiny script to prove everything is set up properly.9th June: Session 2 - Set up the game loop
We create the main code to run a game (using a popular Python package, pygame). We create our first version of the snake - which is only a single square and does not move yet.16th June: Session 3 - respond to user input
We get our snake to change colours and to move up / down / left / right when the user presses the arrow keys on the keyboard.23rd June: Session 4 - a proper snake
Our snake literally takes shape and behaves more like the classic snake in the game.30th June: Session 5 - eating and growing
The snake eats food and grows.7th July: Session 6 - applying the rules
The game ends when the snake leaves the screen or collides with itself. If time allows we may implement a score.If you want to be prepared, the course outline and details of how to set up Python on your laptop are here. (But we cover all this in this first session)