
let's make it so we have a way to integrate it with sql in later stages. PLEASE FIX the "fstring" in the js and the id to balance sequence
8 lines
200 B
Python
8 lines
200 B
Python
userNames = {"1":"boyan", "2":"nikola"}
|
|
usersCoins = {"1":"200", "2":"100"}
|
|
|
|
def checkBalance(ID):
|
|
userName = userNames[f"{ID}"]
|
|
userCoins = usersCoins[f"{ID}"]
|
|
return userName, userCoins
|