SHARE
TWEET

Untitled

a guest Feb 21st, 2020 74 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # This function accepts a list of one or more strings 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"])
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top