(Python) Is there a way to check if a database key exists?
Hello, I’d like to know if there’s a way to check if a repl.it database key exists or not. Something like:
x = input()
if db[x] exists:
db[x] = db[x]+1
db[x] = 0
Answered by Smart0ne (743) [earned 5 cycles]