Harold Nelson
9/24/2020
Create and print a list called west_coast containing the names of the states on the west coast of the US. Note there are four.
## ['Alaska', 'Washington', 'Oregon', 'California']
Use a for loop to print the names in your list.
Print the second element in your list using its index.
Compute and print the length of the string west_coast.
Print the contents, length and type of range(4).
## range(0, 4)
## 4
## <class 'range'>
Create and print the list opposite_corner with the names Florida, Georgia, and South Carolina. Do not include Alabama. Then create the list corners by concatenating the two existing lists. Print corners.
## ['Florida', 'Georgia', 'South Carolina']
## ['Alaska', 'Washington', 'Oregon', 'California', 'Florida', 'Georgia', 'South Carolina']
Append North Carolina to your list using the append method.
## ['Alaska', 'Washington', 'Oregon', 'California', 'Florida', 'Georgia', 'South Carolina', 'North Carolina']
Insert Alabama between California and Florida.
## ['Alaska', 'Washington', 'Oregon', 'California', 'Alabama', 'Florida', 'Georgia', 'South Carolina', 'North Carolina']
p, q and r are three boolean variables. On separate lines, print out every possible combination of the three.