Skip to content

Latest commit

 

History

History
29 lines (21 loc) · 596 Bytes

File metadata and controls

29 lines (21 loc) · 596 Bytes

Exercise 1.7 - Greeting

Write a program that takes user input after being prompted What is your name?. When the user has written their name, the program has to print "Hi " followed by the user's name.

The exercise template comes with a program template that includes the function and its call.

def main():
  #write your code below this line

if __name__ == '__main__':
    main()

Example output when user gives the name Ada.

What is your name?
*Ada*
Hi Ada

Example output when user gives the name Lily.

What is your name?
*Lily*
Hi Lily