Static Method: Using the @staticmethod decorator

Easy Method Types & Behaviors
Solve in Playground →

Problem Statement

Create a `MathUtils` class. Add a static method `multiply(a, b)` using the `@staticmethod` decorator that returns the product. Call it directly on the class and print ‘Product: [val]’.

Input Format

Two space-separated integers.

Output Format

Print the product string.

Constraints

None

Sample Input

4 5

Sample Output

Product: 20

Explanation

Static methods do not take a `self` or `cls` parameter and behave like regular functions bound to the class namespace.

Starter Code

class MathUtils:
    # Define static method multiply
    pass

if __name__ == '__main__':
    a, b = map(int, input().split())
    # Call MathUtils.multiply and print
    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