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

Scenario: you work for an investment banking firm and have been asked by management of vestor corporation (not real), a software development company, to calcula
How many 100 dollar bills will fit in a cubic foot?
help!! ‘for every £200 that mrs wallace earns, she saves £34’ ‘last month mrs wallace earns £1000’ ‘how much of this does she save?’
Who was responsible for growing the crop that led to the success of Jamestown? A) John Smith B) John White C) John Rolfe D) Thomas Dale
Question 11: People who have cognitive disabilities always are deemed incompetent and given guardians.  A. TrueB. False
What does it mean when a girl gets her hair cut and starts to lose weight
What is one way that Darius united the Persian empire
The quotient of a number and -2
When point B (5, -1) is rotated 180º about the origin, its coordinate becomes (-5, 1). True False
Gideon made two errors in the proof. Identify and correct the errors.