Advertisement
Blessing988

Untitled

Feb 21st, 2020
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.23 KB | None | 0 0
  1. def first_letter_of_last_string(your_list):
  2.     print(your_list[-1][0])
  3.  
  4.  
  5. first_letter_of_last_string(["cat", "dog", "mouse", "monkey"]) #Example (the argument must be a list containing at least one string)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement