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

Plzzz help due tomorrow
What fractional amount of the Earth’s surface is covered by oceans or glaciers if 2/3 is covered by oceans and 1/10 by glaciers? Don’t know where to start? But
50 points for the right answer
What is the beer and wine revenue act
What is the maximum amount of cholesterol a "healthy" snack can contain, according to the FDA? A. 3 mg B. 30 mg C. 60 mg D. 80 mg
A) co2 is non polar while h2o is polar why? b) why pcl5 is very reactive? c) h2o is a liquid h2s is a gas. why? It is a 3 mark question so (a) carries 1 mark, (
Were the delegates successful in creating a balanced government
Lightly at first, the rain began again. Is this transitive or intransitive? Is there a direct object?
You take 150 you had kept under your mattress and deposit it in the bank account. Supposed this $150 stay in the banking system as reserves and bank hold reserv
business management​