Nested Dictionary

Medium Dictionaries PRO
🔒 Login to Unlock

Problem Statement

Write a Python program to access and print a specific inner value from a nested dictionary structure.

Input Format

Outer key and inner key separated by a space (e.g., `student1 marks`).

Output Format

Print the value.

Constraints

Valid keys in nested structure `{'student1': {'name': 'Alice', 'marks': 85}, 'student2': {'name': 'Bob', 'marks': 90}}`

Sample Input

student1 marks

Sample Output

85

Explanation

Access nested dictionaries using chained bracket keys like `nested[outer][inner]`.

Starter Code

def get_nested(outer, inner):
    data = {'student1': {'name': 'Alice', 'marks': 85}, 'student2': {'name': 'Bob', 'marks': 90}}
    # Write your code here
    pass

outer, inner = input().split()
print(get_nested(outer, inner))

Limits

  • Time Limit: 1s
  • Memory Limit: 256MB

Embedded C Programming

Updated: March 15, 2026
Intermediate

Embedded systems rely on efficient low-level programming to interact directly with hardware. In this course, you will learn how to write practical Embedded C programs used in real microcontroller-based systems. Rather than focusing only on theory, this course follows a practice-driven approach. Each lesson includes hands-on coding exercises that simulate real firmware development tasks used