28.5k views
0 votes
Write a function named get_first_name that asks the user to enter his or her first name and returns it.

User Dan Milon
by
4.2k points

1 Answer

4 votes

Answer:

def get_first_name( ):

My_name = input('Please What is Your Name')

return My_name

Step-by-step explanation:

In Python Programming Language, we define the function def get_first_name

The function receives no parameters.

On line two, the function uses the input function to request for a users name and assigns

On line three, it returns the the name entered by the user.

User Miguelangel
by
4.7k points