#Write a Python program to display the current date and time.
import datetime
now = datetime.datetime.now()
print ("Current date and time : ")
print (now.strftime("%Y-%m-%d %H:%M:%S"))
Output:
Current date and time :
2014-07-05 14:34:14
#Write a Python program to display the current date and time.
import datetime
now = datetime.datetime.now()
print ("Current date and time : ")
print (now.strftime("%Y-%m-%d %H:%M:%S"))
Output:
Current date and time :
2014-07-05 14:34:14
program to print the documents (syntax, description etc.) of Python built-in function(s)
Python Program to find the ASCII value of the given character
Python program to swap first and last element of a list
What is Break statement in python
Python program to Reversing a list using reversed()
program to display the examination schedule
Python Program to find the area of triangle
Python Program to generate a random number between 0 and 9
Python code to count the number of occurrences in list