I would like to exit my for loop when a condition inside is met.
How could i exit my for loop when the if condition has been met?
I think some kind of exit at the end of my if statement, but don't
It has to do with the normal form for the sql language.
If statements can, by definition, only take a single sql statement.
However, there is a special kind of sql statement which can contain multiple.
The end=' ' is just to say that you want a space after the end of the statement instead of a new line character.
In python 2. x you would have to do this by placing a comma at the end of the print.