Write a program to print the current date and time
Topic: Write a program to print the current date and time
Solution
from datetime import datetime now = datetime.now() print(now)
List all Python Programs
Solution
from datetime import datetime now = datetime.now() print(now)