I am Trying to turn a list elements to a class instance. I have a list like the one below
new_value = ('TafaTIC', 'normal_user', '1', '19', False)
and a class just like this example
class student:
def __init__(self, name: str, level: str, ID: str, age: str, student: bool):
self._name = name
self._level = level
self._id = ID
self._age = age
self._student = student
basically what I want is to distribute these element to this class in order to be like this in the end
Student = student('TafaTIC','normal_user','1','19',False)
Thank you in advance <3