Skip to content

Commit 88b989b

Browse files
authored
Update README.md
1 parent 6d9a125 commit 88b989b

1 file changed

Lines changed: 20 additions & 1 deletion

File tree

README.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff 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+
7987
res_first_name = first_name_selection(fisrt_name, gender='male', nationality='us')
8088
print(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+
88104
res_last_name = last_name_selection(last_name, nationality='en')
89105

90106
print(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+
98117
age = 18
99118
year_ago = get_year_ago(age)
100119
print(year_ago.strftime('%Y-%m-%d'))

0 commit comments

Comments
 (0)