Computer Science, asked by Year5739, 1 month ago

Dictionary Coding
Description
Dictionary Coding
Sample input:
Employee_data = { 101:['Shiva', 24, 'Content Strategist'] ,102:['Udit',25,'Content Strategist'], 103:['Sonam', 28,'Sr Manager'], 104:['Ansari',29,'Product Lead' ],105:['Huzefa',32,'Project Manager' ]}
Sample output:
'Product Lead'
Note: Assume that employee data would be available in the data provided to you

Answers

Answered by pranavraswan
1

i couldn't understand your question but

Answer:

if you mean JavaScript:

console.log(Employee_data[3][2])

python:

data = Employee_data[3][2]

print(data)

Explanation:

python and JavaScript, both are bit same

Answered by shivamgoyal452
7

Answer:

import ast,sys

input_str = sys.stdin.read()

input_dict = ast.literal_eval(input_str)

#actual code start from down below

Employee_list = list( input_dict[104])

profession = Employee_list[2]

print(profession)

Similar questions