Access Values

Easy Dictionaries PRO
🔒 Login to Unlock

Problem Statement

Write a Python program to access and print the value associated with a specified key from a dictionary.

Input Format

A key string to query from a predefined dictionary `{'brand': 'Ford', 'model': 'Mustang', 'year': 1964}`.

Output Format

Print the value.

Constraints

Key exists in dictionary

Sample Input

model

Sample Output

Mustang

Explanation

Access dictionary values using bracket notation `dict[key]` or `.get(key)`.

Starter Code

def get_value(key):
    car = {'brand': 'Ford', 'model': 'Mustang', 'year': 1964}
    # Write your code here
    pass

key = input()
print(get_value(key))

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