Lecture 5 ExercisesΒΆ
For each character in the string already saved in the variable
str1
, append each character to a list called chars
.
Iterate over the list
lm
(which contains only strings) and print out the first character of each string in the list!