May-18-2021, 06:07 AM
Indentation defines code blocks in Python. Because "tirage()" is indented the same as "if response..." it marks the start of a new code block and it's execution is not affected by the if statement. You should be getting a syntax error because the "else:" does not have a corresponding "if". When I ran you code I get this message.
Output: File "...\junk.py", line 4
else:
^
SyntaxError: invalid syntax