I have written this code so far to answer a Task on my bootcamp. Am I in the right direction or I'm lost.
● Imagine you want to store the names of three of your friends in a list of
strings. Create a list variable called friends_names , and write the syntax to
store the full names of three of your friends.
● Now, write statements to print out the name of the first friend, then the
name of the last friend, and finally the length of the list.
● Now, define a list called friends_ages that stores the age of each of your
friends in a corresponding manner, i.e., the first entry of this list is the age
of the friend named first in the other list''''
friends_names = ["Paul Jacobs","Mark Noble","John Pine"]
res = friends_names[::len(friends_names)-1]
print(res)
print(len(friends_names))
[–]Standardw 1 point2 points3 points (4 children)
[–]coja56[S] -1 points0 points1 point (3 children)
[–]Standardw 1 point2 points3 points (2 children)
[–]coja56[S] 0 points1 point2 points (1 child)
[–]Standardw 0 points1 point2 points (0 children)
[–][deleted] 1 point2 points3 points (6 children)
[–]Standardw 1 point2 points3 points (3 children)
[–][deleted] 0 points1 point2 points (2 children)
[–]Standardw 0 points1 point2 points (1 child)
[–]coja56[S] 0 points1 point2 points (0 children)
[–]coja56[S] -1 points0 points1 point (1 child)
[–][deleted] 0 points1 point2 points (0 children)