generate functionWed, 17 May 2023

crear un login y archivos Json

def create_login(user, password): #this function creates a login and json file #with the information provided import json f = open(str(user)+'.json','w') dict = {} dict['user'] = user dict['password'] = password json.dump(dict, f) f.close() create_login('juan', '1234')

Questions about programming?Chat with your personal AI assistant