Skip to content

Commit e729af5

Browse files
authored
Description and content
Description and content
1 parent cca56da commit e729af5

File tree

1 file changed

+28
-2
lines changed

1 file changed

+28
-2
lines changed

README.md

+28-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,28 @@
1-
# Python-Projects-Create-A-Dictionary
2-
Python Projects Create A Dictionary
1+
# Python Projects: Create A Dictionary 🐍
2+
This repo contains python code that create a dictionary.<br>
3+
Run the code.
4+
5+
6+
Python
7+
```python
8+
def dictionary(words, pos, meanings):
9+
for word, pos, meaning in zip(words, pos, meanings):
10+
print(f'{word} : {pos} : {meaning}')
11+
12+
words = ['ability', 'abroad', 'actor']
13+
# pos stands for part of speech
14+
pos = ['noun', 'adverb', 'noun']
15+
meanings = ['ability to do something the fact that somebody/something is able to do something', ' in or to a foreign country', 'a person who performs on the stage, on television or in films, especially as a profession']
16+
17+
dictionary(words, pos, meanings)
18+
19+
```
20+
21+
Output
22+
```python
23+
ability : noun : ability to do something the fact that somebody/something is able to do something
24+
abroad : adverb : in or to a foreign country
25+
actor : noun : a person who performs on the stage, on television or in films, especially as a profession
26+
27+
```
28+

0 commit comments

Comments
 (0)