To the faculty page of James Tam | Return to the course web page |
Due at 4 PM. For assignment due dates see the main schedule on the course webpage.
Only new concepts that need to be applied in the assignment are listed, concepts previously applied in other assignments may need to used in the implementation of your solution.
Up to this point you have only been using functions that have already been defined with the Python programming language such as: print() and input(). For this assignment you will be defining (writing the body) of a new function called revealName(). JT's hint: knowing your terminology is always important before starting an assignment. It is imperative that you complete this prerequisite work for this particular assignment (studying the concepts in the 'decomposition/functions' lectures, trying to apply those concepts as well as learning the necessary terminology) otherwise you will have trouble understanding the following requirements.
Implement a function called revealName().
When called this function will:
Prompt the user to enter their full name by calling the pre-created python input() function. (Worth 1.0 GPA)
The user's input must be stored in a variable that is local to revealName and not in a global variable. (Worth 1.0 GPA)
Echo back the name that user entered by calling the pre-created python print() function. (Worth 1.0 GPA)
Example run of a my solution: