Filling out online forms
A lot of online forms have been made user-friendly by pre-filling some default information for the user. You are asked to make a user-friendly function that can be used by the whole company when they onboard new customers. It’s known that most of the customers come from a
Sales
background, and their experience is 5+ years
.The function should have 4 arguments, where the
name
and the age
are required, while background
and experience
are pre-filled.The function should print a simple table with each field on a separate line. An example is presented below:
Name: Anna
Age: 35
Background: Sales
Experience: 5+ years
In case the name or the age were not provided, the function should print
Not enough information
. You can set the default values for name and age to None
to print this message if the values remain None
.Input | Output |
Susan 20 Marketing 1 | Name: Susan
Age: 20
Background: Marketing
Experience: 1 |
Bob | Not enough information |
Constraints
Time limit: 2 seconds
Memory limit: 512 MB
Output limit: 1 MB