#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
Python Program to check if a string is palindrome or not
Python Program to find the ASCII value of the given character
Python program that accepts an integer (n) and computes the value of n+nn+nnn
Python program to find the largest of three numbers
Write a Python program to get a string which is n (non-negative integer) copies of a given str
Python code to count the number of occurrences in list
String to list conversion in python
Python program which takes radius from user and print area
Python program to find H.C.F of two numbers
Write Hello World Program in Python
Python program to find the roots of Quadratic equation
Return list by function in python