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)

Another demo how to use booleans 😕

count = 0
login_status = True
while login_status == True:
print("Try again.")
count = count + 1
if count == 4:
login_status = False

From https://www.coursera.org/learn/automate-cybersecurity-tasks-with-python/supplement/aEQVC/more-on-loops-in-python

Coursera | Online Courses & Credentials From Top Educators. Join for Free | Coursera

Learn online and earn valuable credentials from top universities like Yale, Michigan, Stanford, and leading companies like Google and IBM. Join Coursera for free and transform your career with degrees, certificates, Specializations, & MOOCs in data science, computer science, business, and dozens of other topics.

Coursera