This is how Google teaches to use conditional statements in Python.

organization_hours = True

if organization_hours == True:
print("Login attempt made during organization hours.")

Does PEP-8 mean nothing to you?

From Automate Cybersecurity Tasks with Python course, which is mandatory for Google Cybersecurity Professional Certificate.

I'm a Python developer, so this part with basics of Python is extremely boring; especially if you are a type of person that doesn't like to skip parts of a whole (I don't like it so much that I've never let myself to try newer Zelda games because I have not completed The Adventure of Link yet) :(

PEP 8 – Style Guide for Python Code | peps.python.org

This document gives coding conventions for the Python code comprising the standard library in the main Python distribution. Please see the companion informational PEP describing style guidelines for the C code in the C implementation of Python.

Python Enhancement Proposals (PEPs)

The irony is that they DO tell about PEP-8 in the next module, item "Code readability": https://www.coursera.org/learn/automate-cybersecurity-tasks-with-python/lecture/0pAlc/code-readability

They also explain in this video that it's important to write comments, to make code easier to understand for other people and for future self... The example is on the picture 

Code readability - Write effective Python code | Coursera

Video created by Google for the course "Automate Cybersecurity Tasks with Python". You will expand your ability to work with Python. You'll learn about pre-built and user-defined Python functions. You'll also explore how modules help provide ...

Coursera