Skip to content
Stocks Simulator
Profile icon
RishiMohanty

Stocks Simulator:

-Buy Stocks
-Sell Stocks
-Go Big or Go Home

CAN YOU GET ON THE LEADERBOARD??

You are viewing a single comment. View All
Profile icon
RishiMohanty

@MrVoo

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 →