Advertisement
Guest User

Untitled

a guest
Feb 21st, 2020
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.27 KB | None | 0 0
  1. # This function accepts one a list of string and returns the first character of the last string
  2.  
  3. def first_letter_of_last_string(lists):
  4.     print(lists[-1][0])
  5.    
  6.    
  7. first_letter_of_last_string(["Orange", "Pineapple", "apple"])
  8. first_letter_of_last_string(["Python"])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement