Guest User

Untitled

a guest
Jun 22nd, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. # Define a procedure, udacify, that takes as
  2. # input a string, and returns a string that
  3. # is an uppercase 'U' followed by the input string.
  4. # for example, when you enter
  5.  
  6. # print udacify('dacians')
  7.  
  8. # the output should be the string 'Udacians'
  9. def udacify(dacians):
  10. return'U'+dacians
  11.  
  12.  
  13.  
  14.  
  15.  
  16. # Remove the hash, #, from infront of print to test your code.
  17.  
  18. print udacify('dacians')
  19. #>>> Udacians
  20.  
  21. print udacify('turn')
  22. #>>> Uturn
  23.  
  24. print udacify('boat')
  25. #>>> Uboat
Add Comment
Please, Sign In to add comment