root = Tk()
users = [['Anne', 'password1', ['friend1', 'friend2', 'friend3']], ['Bea',
    'password2', ['friend1', 'friend2', 'friend3']], ['Chris', 'password1',
    ['friend1', 'friend2', 'friend3']]]
for x in range(len(users)):
    l = Checkbutton(root, text=users[x][0], variable=users[x])
print('l = Checkbutton(root, text=' + str(users[x][0]) + ', variable=' + str(
    users[x]))
l.pack(anchor='w')
root.mainloop()
How do I create multiple checkboxes from a list in a for loop in python tkinter