Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def first_letter_of_last_string(list):
- return list[-1][0]
- '''This function returns the first letter of
- the last string of a list'''
- print(first_letter_of_last_string(["food", "music", "book", "game", "sleep"]))
- print(first_letter_of_last_string(["food", "music", "book"]))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement