First I started with:
import datetime print(datetime.datetime.now())
Then I added some text and a variable:
import datetime dtn = datetime.datetime.now() print("The date and time is:", dtn)
When run the program will print:
The date and time is: 2020-01-24 13:10:11.983919
No comments:
Post a Comment