# Variables representing the time of day and the presence of the guard
hour = 6 # Example time before 7 AM
guard = False # Example where guard is not present
# Determine if you can enter the campus gate
if 7 <= hour <= 17:
# If the time is between 7 AM and 5 PM, the gate is open
can_enter = True
else:
# If the time is before 7 AM or after 5 PM, check for the guard's presence
can_enter = not guard
# Print the result
if can_enter:
print("You're in!")
else:
print("Sorry, you cannot enter the campus right now.")