Skip to content

Commit c6a4502

Browse files
committed
readme.md files fix
1 parent 88b989b commit c6a4502

4 files changed

Lines changed: 64 additions & 7 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ User data. Selecting a name from a list of names, selecting a last name from a l
1919

2020
- create_last_name - 1. names - an array of names. 2. nationality - string value in __iso2__ format
2121

22-
- get_year_ago - the function takes one parameter (age)
22+
- get_year_ago - the function takes one parameter (age). Month and day are given randomly.
2323

2424
---
2525
## Tech Stack

docs/README_DE.md

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Benutzerdaten. Wenn Sie einen Namen aus einer Namensliste auswählen oder einen
1818

1919
- create_last_name - 1. Namen – ein Array von Namen. 2. Nationalität – Zeichenfolgenwert im __iso2__-Format
2020

21-
- get_year_ago - Die Funktion benötigt einen Parameter (Alter)
21+
- get_year_ago - Die Funktion benötigt einen Parameter (Alter). Monat und Tag werden zufällig vergeben.
2222

2323
---
2424
## Tech-Stack
@@ -74,7 +74,15 @@ import get_year_ago
7474
```
7575
## Function number 1
7676
```python
77-
#
77+
# get list
78+
79+
get_list("first_names.json")
80+
81+
# takes three parameters
82+
# 1. list with named
83+
# 2. string with gender
84+
# 3. string with Name nationality (optional)
85+
7886
res_first_name = first_name_selection(fisrt_name, gender='male', nationality='us')
7987
print(res_first_name)
8088
```
@@ -84,6 +92,14 @@ print(res_first_name)
8492
```
8593
### Function number 2
8694
```python
95+
# get list
96+
97+
get_list("last_names.json")
98+
99+
# takes three parameters
100+
# 1. list with named
101+
# 2. string with Name nationality (optional), default parameter = 'en'
102+
87103
res_last_name = last_name_selection(last_name, nationality='en')
88104

89105
print(res_last_name)
@@ -94,6 +110,9 @@ print(res_last_name)
94110
```
95111
### Function number 3
96112
```python
113+
# takes one parameter
114+
# 1. integer with age
115+
97116
age = 18
98117
year_ago = get_year_ago(age)
99118
print(year_ago.strftime('%Y-%m-%d'))

docs/README_RU.md

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
- create_last_name - 1.names — массив имён. 2. nationality – строковое значение в формате __iso2__.
2020

21-
- get_year_ago - функция принимает один параметр (age)
21+
- get_year_ago - функция принимает один параметр (age). Месяц и день выдаются случайно.
2222

2323
---
2424
## Технический стек
@@ -74,7 +74,15 @@ import get_year_ago
7474
```
7575
## Function number 1
7676
```python
77-
#
77+
# get list
78+
79+
get_list("first_names.json")
80+
81+
# takes three parameters
82+
# 1. list with named
83+
# 2. string with gender
84+
# 3. string with Name nationality (optional)
85+
7886
res_first_name = first_name_selection(fisrt_name, gender='male', nationality='us')
7987
print(res_first_name)
8088
```
@@ -84,6 +92,14 @@ print(res_first_name)
8492
```
8593
### Function number 2
8694
```python
95+
# get list
96+
97+
get_list("last_names.json")
98+
99+
# takes three parameters
100+
# 1. list with named
101+
# 2. string with Name nationality (optional), default parameter = 'en'
102+
87103
res_last_name = last_name_selection(last_name, nationality='en')
88104

89105
print(res_last_name)
@@ -94,6 +110,9 @@ print(res_last_name)
94110
```
95111
### Function number 3
96112
```python
113+
# takes one parameter
114+
# 1. integer with age
115+
97116
age = 18
98117
year_ago = get_year_ago(age)
99118
print(year_ago.strftime('%Y-%m-%d'))

docs/README_UA.md

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
- create_last_name - 1.names - масив імен. 2. nationality – рядкове значення форматі __iso2__.
2020

21-
- get_year_ago - функція приймає один параметр (age)
21+
- get_year_ago - функція приймає один параметр (age). Місяць та день видаються випадково.
2222

2323
---
2424
## Технічний стек
@@ -74,7 +74,15 @@ import get_year_ago
7474
```
7575
## Function number 1
7676
```python
77-
#
77+
# get list
78+
79+
get_list("first_names.json")
80+
81+
# takes three parameters
82+
# 1. list with named
83+
# 2. string with gender
84+
# 3. string with Name nationality (optional)
85+
7886
res_first_name = first_name_selection(fisrt_name, gender='male', nationality='us')
7987
print(res_first_name)
8088
```
@@ -84,6 +92,14 @@ print(res_first_name)
8492
```
8593
### Function number 2
8694
```python
95+
# get list
96+
97+
get_list("last_names.json")
98+
99+
# takes three parameters
100+
# 1. list with named
101+
# 2. string with Name nationality (optional), default parameter = 'en'
102+
87103
res_last_name = last_name_selection(last_name, nationality='en')
88104

89105
print(res_last_name)
@@ -94,6 +110,9 @@ print(res_last_name)
94110
```
95111
### Function number 3
96112
```python
113+
# takes one parameter
114+
# 1. integer with age
115+
97116
age = 18
98117
year_ago = get_year_ago(age)
99118
print(year_ago.strftime('%Y-%m-%d'))

0 commit comments

Comments
 (0)