During this lab IĀ had to create a code to show the date and time. I learned how to import the “datetime” to do the lab. Then I wrote a code to show the current date and time “now = datetime.now()” After learning how to print the current hour, minute, second, day, month, and year, I had to write a code to write the date and time in specific format such as mm/dd/yyyy and hh:mm:ss. I wrote the code using the Ā multiple “%s” and after preceded with / Ā for the date and : for the hour for each “%s”. So it should be “‘%s/” and “%s:”
The difficulty I had doing this lab was minor because the coding was simple to understand. The only very small issue I had was remembering to put the / for date and : for time after the %s.