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

mperfect markets have higher prices than perfect markets. Please select the best answer from the choices provided T F
hey this text is just for min word requirement the problem is in the picture
Which pay is equivalent to 16 $ per hour A) 48 for 3 hours B)120 for 12 hours C) 60 for 5 hours D) 96 for 9 hours
log (4) - log (x) = 2​
which speaker would jeanjacques most likely agree with? Speaker1: the will of the people is what is best for society Speaker2: people exchange some of their ind
A set of data with the mean of 60 and the standard deviation of 7.5 is normally distributed what is the -2 standard deviation from the mean
In Amy's garden the ratio of herbs to plants is 5:2. If there are 40 herb plants, how many vegetable plants are in her garden?
why do AED pads need to be placed one inch away from jewelry or pacemakers
Directions that are clearly stated are also called ______. Example: Recipe or instruction man
If p=-1, which of the following has the greatest value? A) 4p^2 B) 6p^2 C) 8p^2 D) 10p^2