Python's equivalent to Basic's Public Type

Good Morning,
I am working on converting much of my Basic code to Python. Currently I would like to convert this:

Public Type WorksProject
	projectName As String
	browseRole As String
	manageRole As String
	functionalRole As String
End type

to some kind of Python equivalent. Is this possible? Thank you for your assistance.

If you need to ask, you should firstly start with 3.10.4 Documentation

1 Like
class Workproject():
    
    def __init__(self, name, browse_role , managable_role, functional_role):
        self.name = name
        self.browse_role = browse_role
        self.managable_role = managable_role
        self.functional_role = functional_role

or collections — Container datatypes — Python 3.10.4 documentation

1 Like

Thank you very much. This is highly appreciated.