Advertisement
JkSoftware

Day 10 -Doc Strings

Nov 15th, 2021
763
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.29 KB | None | 0 0
  1. def format_name(f_name, l_name):
  2.     """
  3.    Take a first and last name and fomat it
  4.    to return the title case. This is a docstring
  5.    """
  6.     f_name = f_name.title()
  7.     l_name = l_name.title()
  8.     return f"{f_name} {l_name}"
  9.    
  10.  
  11.  
  12. print(format_name("JOHN", "dOE"))
  13. format_name()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement