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

According to the stem and leaf plot how many trees are more than 640 inches tall? CANT MISS ANYMORE PLEASE GIVE THE FOR SURE ANSWER!!
I need help ty ty ty :-)
Which biome has the highest diversity of species? A. Savanna B. Temperate rain forest C. Tropical rain forest D. Desert
when did imperialism end​
What are the solutions of the following? 2x2 + 26x + 80 Your answer: {5,8} {-5,-8} {4,10} {-4, -10}
list and explain 5 ways of data presentation​
Peter has been saving his loose change for several days. When he counted his quarters and dimes, he found they had a total value of $13.10. The number of quarte
Match the following vocabulary words with their definitions. 1 a title or key accompanying an illustration or map abstract 2. facts from which conclusion
Given f(x)= 10-2x , find f(7). A.–4 B.3 C.7 D.56
Find x to the nearest hundredth! Please help !