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

How should the reader interpret the following sentence? The young woman pressed and prodded the wasted muscles, resting her body on her knees, her bowed head
What is the main function of digestion?
three reasons for mass immigration today
Is 6in or 5ft <,>=, and also do you think you can help me out?
m+-2/3=-1/3 what is m?
The Mexican tortilla is found in very few Mexican dishes.
Why did the turmoil of the French revolutionary years result in a conservative European reaction?
Theresa worked 9 hours on Monday and 7 hours on Wednesday. Her total pay was $116.00. What is her rate per hour?
All of the following are roles of the President's Cabinet EXCEPT? A.advise the president on any matter about which he seeks informationB.Cabinet secretaries are
Davis made 4 clay pots on Friday,7 clay pots on Saturday and clay pots on Sunday. What is the mean number of pots he made each day.