Employee Class: Basic data modeling

Easy Introduction to OOP & Basic Classes
Solve in Playground →

Problem Statement

Create an `Employee` class that takes `name`, `position`, and `salary`. Create an instance from user input (comma-separated on one line) and print “[name] works as [position] earning [salary]”.

Input Format

A single line containing name, position, and salary separated by commas.

Output Format

Print the formatted employee details.

Constraints

None

Sample Input

Bob,Manager,50000

Sample Output

Bob works as Manager earning 50000

Explanation

Modeling real-world entities involves identifying their key attributes.

Starter Code

class Employee:
    # Define __init__ here
    pass

if __name__ == '__main__':
    # Read input, instantiate, 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