Skip to content

natnew/Python-Projects-Create-A-Dictionary

Folders and files

NameName
Last commit message
Last commit date

Latest commit

e729af5 Β· Sep 27, 2021

History

2 Commits
Sep 27, 2021

Repository files navigation

Python Projects: Create A Dictionary 🐍

This repo contains python code that create a dictionary.
Run the code.

Python

def dictionary(words, pos, meanings):
    for word, pos, meaning in zip(words, pos, meanings):
        print(f'{word} : {pos} : {meaning}')

words = ['ability', 'abroad', 'actor']
# pos stands for part of speech
pos = ['noun', 'adverb', 'noun']
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']

dictionary(words, pos, meanings)

Output

ability : noun : ability to do something the fact that somebody/something is able to do something
abroad : adverb :  in or to a foreign country
actor : noun : a person who performs on the stage, on television or in films, especially as a profession

About

Python Projects Create A Dictionary

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published