Date and Time Lab #6

DateTimeJR

On this lab we learned about strings and console output. We created variables, assigned them a string, and use different string methods. They include len(), upper(), lower(), and str(). The lab also included string concentration, which takes different strings, and adds them together. In order to make it easier to deal with, the lab showed that we can turn non-strings into strings. After that we would use “%s” to add strings, but this is considered a better method than concentration of strings because we won’t have to type every string again.

The second part of the lab required us to apply the things we learned and use the function datetime.now() to get the current date and time. That is pretty much what the second part required. Overall this lab was easy, and the concept was not very complicated to understand.

Comments are closed.