Utility Functions as Static Methods

Medium Method Types & Behaviors
Solve in Playground →

Problem Statement

Create a `StringUtils` class with a static method `is_palindrome(s)` that returns True if the string is a palindrome, False otherwise. Print ‘Is Palindrome: [True/False]’.

Input Format

A single word (string).

Output Format

Print the boolean evaluation.

Constraints

Case-sensitive comparison is fine.

Sample Input

racecar

Sample Output

Is Palindrome: True

Explanation

Static methods are perfect for grouping related utility functions that don't need access to instance state.

Starter Code

class StringUtils:
    # Define static method is_palindrome
    pass

if __name__ == '__main__':
    s = input().strip()
    # Check 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