pinterestmom268 pinterestmom268
  • 02-01-2020
  • Computers and Technology
contestada

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

Respuesta :

ijeggs
ijeggs ijeggs
  • 03-01-2020

Answer:

def get_first_name( ):

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

   return My_name

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.

Answer Link

Otras preguntas

(44143)5*(23023)5 please hurry up
Evaluate the expression for x = 6, y = -10: 3x - 7y
What does biodiversity mean?Having as wide a range of organisms as possible Having as narrow a range of organisms as possible Species at risk of extinction
Mr. Hann is trying to decide how many new copies of a book to order for his students. Each book weighs 6 ounces. Which ordered pair is a viable solution if x re
What is matrix?Explain with an example.
The _______ settles in the _______
Which table represents a direct variation function?
1.What was the old man doing in his native town? 2. What does the narrator suggest the old man? 3. Why does the narrator take so much time to converse with the
Any help is appreciated! Which ruler promoted religious diversity in the Ottoman Empire? 1) Suleiman I 2) Akbar 3) Aurangzeb 4) Mehmed ll
How do you graph solutions for inequalities on a coordinate plane?