lab 03

Summary

In this lab I learned how to use strings and symbols to display the date and time

Code

from datetime import datetime
now = datetime.now()
print now
print now.year
print now.month
print now.day
print str(now.month) + “/” + str(now.day) + “/” + str(now.year) + ” ” + str(now.hour) + “:” + str(now.minute) + “:” + str(now.second)

 

lab 3

 

Leave a Reply

Your email address will not be published. Required fields are marked *