Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Define a procedure, udacify, that takes as
- # input a string, and returns a string that
- # is an uppercase 'U' followed by the input string.
- # for example, when you enter
- # print udacify('dacians')
- # the output should be the string 'Udacians'
- def udacify(dacians):
- return'U'+dacians
- # Remove the hash, #, from infront of print to test your code.
- print udacify('dacians')
- #>>> Udacians
- print udacify('turn')
- #>>> Uturn
- print udacify('boat')
- #>>> Uboat
Add Comment
Please, Sign In to add comment