Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Person():
- def __init__(self, login, password, name, surname, pulpit, group, course):
- self.login = login
- self.password = password
- self.name = name
- self.surname = surname
- self.pulpit = pulpit
- self.group = group
- self.course = course
- class Subjects():
- def __init__(self, subject, description, course, login_list):
- self.subject = subject
- self.description = description
- self.course = course
- self.login_list = login_list
- user = []
- user.append(Person("test-1", "test-pass-1", "Igor", "Lomovskoy", "IU7", "32", 2))
- user.append(Person("test-2", "test-pass-2", "Stas", "Borisov", "IU7", "31", 2))
- subjects = []
- subjects.append(Subjects("Programming", "Lab 1", 2, []))
- subjects[0].login_list.append("test-1")
- subjects[0].login_list.append("test-2")
- for i in range(len(user)):
- print(user[i].login, user[i].password, user[i].name, user[i].surname, user[i].pulpit, user[i].group, user[i].course)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement