I'm doing a python "project" for my class! Like I want to make the computer choose random students who to sit with and where! Well... I know how to do it my self, but i want to make it automated with JSON. Uhm.. like when i run the command and then the computer randomly chooses two students and I want to store that choice with JSON, so when i run the command again to check for the other students it wont try to choose the ones that have been already chosen before and that are stored in JSON file.
import random
#whotositwith
names1 = ('')
names2 = ('')
whotositwith = (random.choice(names1) + " - " + random.choice(names2))
bankcouple = whotositwith
#wheretosit
banka = '1'
nxenesit_numer = ('')
wheretosit = ("Nxënësit numër " + random.choice(nxenesit_numer) + " në bankën e " + banka)
banka = wheretosit
print(bankcouple)
Don't mind the language, it is not fully in English! :)