yes,It does exist.
from datetime import datetime
def greet4():
return f"The current date and time are {str(datetime.now())}."
If function returns a value instead of print and display.Checkout the link https://_12.pyscriptapps.com/user-inputs-copy-copy/latest/