Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def function_to_be_dormant():
- """Function that remains dormant until activated."""
- print("Function is now active")
- # Function logic here
- def main():
- while True:
- user_input = input("Type 'activate' to run the function or 'exit' to quit: ").strip().lower()
- if user_input == "activate":
- function_to_be_dormant()
- elif user_input == "exit":
- print("Exiting...")
- break
- else:
- print("Invalid input. Try again.")
- if __name__ == "__main__":
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement