Create a `Config` dataclass with an integer `timeout`. Make the class immutable by setting `frozen=True`. Inside a `try` block, attempt to modify the `timeout` to 100. Catch `dataclasses.FrozenInstanceError` and print ‘Immutable’.
A single integer.
Print 'Immutable'.
None
30
Immutable
Setting `frozen=True` makes the instances of the dataclass read-only, preventing post-initialization modifications.
import dataclasses
from dataclasses import dataclass
# Define the frozen Config dataclass here
if __name__ == '__main__':
val = int(input())
# Instantiate, try modifying, and catch the error
passEmbedded 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