Complete this assignment.
################################################################### # Description: improve this program by using functions # Mrs. Elia # 10/7 # python 3.9 # ################################################################### aName = input("Hi! What is your name? ") print "Hello ",aName, "! I hope you are enjoying your day!" ##>>> ##Hi! What is your name? grace ##Hello grace! I hope you are enjoying your day! ##>>>
Here is an outline of the changes:
#from aName = input("Hi! What is your name? ") print "Hello ",aName, "! I hope you are enjoying your day!" # to functional programming def hello(aName): # it prompts the user for a name # it prints a message with the name def main(): # it calls the only one function main() # execute by calling it
Read this article: Fostering Tech Talents in School. All of it.