Register the employees

Report a typo

The company you work for is creating a system for registering new employees. For now, all the information they want to store is name and id_number. However, id_number is only given to the employees after their probation, so at first, they don't have any – that's why the default value is None.

The code has been written for you, but it's all messed up! Arrange the lines in correct order and use indentation where necessary. To add indentation, use the buttons on the left.

Keep in mind the order of attributes with and without default values!

Reorder lines using drag or arrows. Adjust indentation with left buttons
                class Employee:
              
                from dataclasses import dataclass
              
                @dataclass
              
                name: str
              
                id_number: int = None
              
___

Create a free account to access the full topic