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

need answers urgent 50 points ​
A metaphor compares two unlike things directly, with out using like or as. Example: His father was iron about following the house rules. What is the meaning of
Reading the Bible regularly is essential to Christian growth.
Hello, I need to cancel my subscription
Was Adolf Hitler a good social leader or a poor social leader?
Helppppppp ion know how to do this
Which value for x makes the sentence true? 12x = 8x + 12 Group of answer choices x = 8 x = 16 x = 1 x = 3
solve the system of equations -2x - y = 6 8x + 3y = -28
Which court case ruled that "Separate but equal" was NOT okay any longer? a) Marbury v Madison b) Plessy v Ferguson c) Brown v Board of Education d) Roe v Wade
(x = 3) y=x+5 How would I solve this problem