Hello @pskidd
Python is very particular about indentation to run. I do not know if the posting process stripped the indentation or if this is the way you had the actual code. Either way, I made an indication in your code as to what needs the indentation and the level of it. Also there’s an extraneous closing square bracket that you must deal with it.
I’ve edited your code for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.
You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.
Many thanks to all. This is a wonderful forum!! it was just that extraneuous square bracket t the start that threw me. If there is a good online/installable python editor avaialable that will highlight these syntax errors please let me know!!! (PS I use a lot use both Chromebooks and Windows PCs)!!