Constant Class Attributes convention

Easy State Management (Variables)
Solve in Playground →

Problem Statement

Create a `MathConfig` class. Define an uppercase class attribute `MAX_RETRIES` set to 5. This indicates to other developers that it should be treated as a constant. Print ‘Max Retries: [val]’.

Input Format

None

Output Format

Print the constant value.

Constraints

None

Sample Output

Max Retries: 5

Explanation

While Python doesn't strictly enforce constants, naming a class variable in ALL_CAPS signifies it should not be mutated.

Starter Code

class MathConfig:
    # Define the constant class variable here
    pass

if __name__ == '__main__':
    # Print the constant
    pass

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