Date and Time

Objective: In this assignment, we logged into our Code Academy accounts to complete “Date and Time”. This lesson allowed us to apply what we just recently learned, which is Strings.

Strings: is a sequence of characters.

Brackets Operators: is to call out characters one at a time.

Index numbers: starts at the number zero and then counts its ways up. For instance, the word “banana” has an overall index number of 6 (as in six letters), but when it comes to coding, the first letter “b” would be counted as 0 (zero) and then the other letter, such as anana would be [1,2,3,4,5].

capture

#1 The datetime Library

capture-png-2

#2 Getting the Current Date and Time

capture-png-3

#3 Extracting Information

capture-png-4

#4 Hot Date

capture-png-5

#5 Pretty Time

capture-png-6

#6 Grand Finale

Overall Experience: When completing this assignment, it wasn’t too bad. I actually got the hang of things. It was like substituting certain words or numbers, to spell out a whole sentence or even tell time with just a simple commands directing what goes where. Basically just replacing them and creating strings.