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

Hey guys, I need 5 sentences!¿Prefieres viajar en coche, en tren, en barco o en avión? ¿Por qué?
What are the advantages and disadvantages of globalization
What are the advantages and disadvantages of globalization
how do you balance __H2SO4 + __B(OH)3 --> __B2(SO4)3 + __H2O
Hey guys, I need 5 sentences!¿Prefieres viajar en coche, en tren, en barco o en avión? ¿Por qué?
Hey guys, I need 5 sentences!¿Prefieres viajar en coche, en tren, en barco o en avión? ¿Por qué?
Hey guys, I need 5 sentences!¿Prefieres viajar en coche, en tren, en barco o en avión? ¿Por qué?
What are the advantages and disadvantages of globalization
Hey guys, I need 5 sentences!¿Prefieres viajar en coche, en tren, en barco o en avión? ¿Por qué?
Hey guys, I need 5 sentences!¿Prefieres viajar en coche, en tren, en barco o en avión? ¿Por qué?