Problem 3.1. The obligatory "hello world" problem.

Write a very simple program that asks the user to enter his or her name, and prints out a welcome message that is customized to the user's name. For example, the program should wait for the user's input after printing out

Enter your name:

When you enter your name,

Enter your name: world

the output on the next line should be

Hello, world!

First, define a function named welcome().


In [1]:
def welcome():
    '''
    Ask user for name and print a welcome message customized to the person's name.
    
    Examples:
    >>> welcome()
    Enter your name: World
    Hello, World!
    '''
    
    # your code goes here.
    
    return None

If you have finished writing the function welcome(), run the cell below to check your answer.


In [2]:
welcome()

In [2]: