“Функция ключей в Python” Ответ

Функция ключей в Python

'''we define a dictionary store which tells us the inventory name and
   the amount of inventory saved in stock'''
store = {"Salt":230,"Flour":540,"Oil":150,"Sugar":210,"Juice":100}
'''the keys function returns us a list of the set keys so we can use them
   to our will'''
keys = store.keys()
print(keys)
Ishwardeep Singh

# Ключи в Python

# keys in python

List_of_Students = {"Jim" : "Roll-32"+","+ "Priority-First",
                    "Yeasin": "Roll-33"+","+ "Priority-2nd",}

print(List_of_Students["Yeasin"])
YEASIN ARAFAT

Ответы похожие на “Функция ключей в Python”

Вопросы похожие на “Функция ключей в Python”

Больше похожих ответов на “Функция ключей в Python” по Python

Смотреть популярные ответы по языку

Смотреть другие языки программирования