Skip to content
← Back to Community
How can I print every key in a repl.it database?
Profile icon
AustinCharb

Hello! I just have a simple question.... I want to view every key in my Repl.it Database, but I'm not sure how to. Can someone tell me how?

Answered by Coder100 [earned 5 cycles]
View Answer
Voters
Profile icon
StarLulu
Profile icon
AustinCharb
Comments
hotnewtop
Profile icon
Coder100

easy

for key in db.keys(): print(key)
Profile icon
RYANTADIPARTHI

you have assigned a vatriable name to db.keys() if you mean by keys. i think to list them out, all you need to do is to print out that variable to the console. simple. nothing else. correct me if I'm wrong.

Profile icon
AustinCharb

@RYANTADIPARTHI It shows a URL... if I click on it, it shows a completely blank page..

Profile icon
RYANTADIPARTHI

@AustinCharb well, then i don't think there is a specific way to show them. keys just save in.