Advertisement
JkSoftware

Day 10 -Doc Strings

Nov 15th, 2021
721
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement