Author: subinacls Language: python
Description: Not specified Timestamp: 2018-03-12 21:15:50 +0000
View raw paste Reply
userdict = dict()
userdict['users'] = dict()

def newentry(username, userid):
    userdict['users'][username] = userid


newentry('testuser', 123456789)


#show all entries
print userdict

# show specific user Aahaad
print userdict['users']['testuser']

 
View raw paste Reply