Advertisement
Adehumble

Week4 Coding Exercise 2

Feb 22nd, 2020
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.43 KB | None | 0 0
  1. #2
  2.  
  3. def first_letter_last_string(expected_list):
  4.     print(expected_list[-1][0])
  5.  
  6.  
  7. print("This program will help you remember the first letter of every last word in any sentence of your choice\nAre you ready?\nOkay then, let's start!")
  8.  
  9. print("|||||"*24)
  10.    
  11. user_string=input("Enter any sentence, don't be shy!: ").split(" ")
  12. print("The first letter of your last word in",user_string,"is: ")
  13. first_letter_last_string(user_string)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement