Stocks Simulator:
-Buy Stocks -Sell Stocks -Go Big or Go Home
CAN YOU GET ON THE LEADERBOARD??
Replit database doesn't work with console projects.
Repl database works whoever is running the project, and even on console projects!
from replit import db
Insert → Set a key to a value db[" key "] = " value "
Insert → Get a key's value value = db[" key "]
Insert → Delete a key del db[" key "]
Insert → List all keys keys = db.keys()
Insert → List keys with a prefix matches = db.prefix(" prefix ")
Insert →
Replit database doesn't work with console projects.
Repl database works whoever is running the project, and even on console projects!
https://docs.replit.com/hosting/database-faq
from replit import db
Insert →
Set
a key to a value
db["
key
"] = "
value
"
Insert →
Get
a key's value
value = db["
key
"]
Insert →
Delete
a key
del db["
key
"]
Insert →
List
all keys
keys = db.keys()
Insert →
List
keys with a prefix
matches = db.prefix("
prefix
")
Insert →