File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -75,7 +75,15 @@ import get_year_ago
7575```
7676## Function number 1
7777``` python
78- #
78+ # get list
79+
80+ get_list(" first_names.json" )
81+
82+ # takes three parameters
83+ # 1. list with named
84+ # 2. string with gender
85+ # 3. string with Name nationality (optional)
86+
7987res_first_name = first_name_selection(fisrt_name, gender = ' male' , nationality = ' us' )
8088print (res_first_name)
8189```
@@ -85,6 +93,14 @@ print(res_first_name)
8593```
8694### Function number 2
8795``` python
96+ # get list
97+
98+ get_list(" last_names.json" )
99+
100+ # takes three parameters
101+ # 1. list with named
102+ # 2. string with Name nationality (optional), default parameter = 'en'
103+
88104res_last_name = last_name_selection(last_name, nationality = ' en' )
89105
90106print (res_last_name)
@@ -95,6 +111,9 @@ print(res_last_name)
95111```
96112### Function number 3
97113``` python
114+ # takes one parameter
115+ # 1. integer with age
116+
98117age = 18
99118year_ago = get_year_ago(age)
100119print (year_ago.strftime(' %Y-%m-%d ' ))
You can’t perform that action at this time.
0 commit comments