# import library
from typing import List, Dict
# define function
def get_list_of_dicts(name: str, category: str) -> Dict[str, str]:
return [{'name': name, 'category': category}]
Fruit = ["Mango", "tomato", "potato", "papaya"]
Fruit_type = ["fruit", "vegetable", "vegetable", "fruit"]
res = [get_list_of_dicts(Fruit[i], Fruit_type[i]) for i in range(3)]
print(res)
new_player1 = { 'firstName': 'LaMarcus', 'lastName': 'Aldridge', 'jersey': '12', 'heightMeters': '2.11', 'nbaDebutYear': '2006', 'weightKilograms': '117.9'}
new_player2 = { 'firstName': 'LeBron', 'lastName': 'James', 'jersey': '2', 'heightMeters': '2.03', 'nbaDebutYear': '2003', 'weightKilograms': '113.4' }
new_player3 = { 'firstName': 'Kawhi', 'lastName': 'Leonard', 'jersey': '2', 'heightMeters': '2.01', 'nbaDebutYear': '2011', 'weightKilograms': '104.3' }
nba_players = []
nba_players.append(player)
nba_players.append(new_player1)
nba_players.append(new_player2)
nba_players.append(new_player3)
lst = [{'a':0,'b':1,'c':2},
{'d':3,'c':4,'b':5},
{'a':5,'d':6,'e':1}]
print(lst[1])
print(lst[1]['c'])