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

Select the correct answer. Which histogram represents this data set? 47, 48, 49, 50, 50, 53, 54, 54, 55, 56, 59, 61 A. histogram A B. histogram B C. histogra
Who said "Courage is not the lack of fear, but the ability to face it"?
A container holds 4 3/8 gallons of water. A hole in the container causes 7/8 gallon to leak out. How many gallons of water are left in the container?
When water soaks into the ground fast it mean to the soil is very ________.
On December 31, a $1,500,000 bond issue on which there is an unamortized discount of $70,100 is redeemed for $1,455,000.
Explain the significance of the expression "sign your name in blood" as it is used in Huck Finn.
if your car get 20 miles per gallon (mpg) and you drive an average of 10000miles each year how many gallons of gas do you use a year
To me these all seem right so I don’t know which to press?
2. You should analyse others' work before workshop. O True O False
Model the pair of situations