How to display an alert in python?

Example:

# Using the built-in 'print' function
print("This is an alert!")
Solution:

# Use the 'print' function to display messages to the console in Python.
print("Alert: Something went wrong!")

Beginner's Guide to Python