You can either use elif: or else:; you cannot use both of them one after the other without any statements in them. Also, your elif: doesn’t include a colon.
Why did you insert this elif? What are you trying to do? If you want to use elif instead of else, you need to include a condition.
Hi yes I know - I stopped after typing elif as it gave an error. maybe that was my mistake -it works in another programme. also how can I delete queries? I tried to delete this one when I discovered it was working elsewhere, but couldn’t see how to…
This is not a valid Python syntax, I don’t see how it can work on another program using Python. If you want to use elif, you need to include a condition. You cannot have empty statements.
What do you mean by saying you want to delete the query?
Hey,
I don’t quite understand what you are trying to do. You want to include an elif statement, but you know how it works, so where is the problem?
My confusion comes from the word query, which doesn’t refer to something in your code.
Where did you see it working? Maybe it will help me understand your intention better.
No, query refers to this post! I can’t see how to delete it. and the problem was that the second I wrote elif it stated it was a python error. I think now that’s because I hadn’t yet added the rest of the statements.