That seems to work for me
How are you declaring your keys?
I notice in my output my keys (which are strings) don't have quotes around them...
Crazy question, do your keys include quotes INSIDE the string?
var dict = {}
for i in range(0,20):
var j = str(i)
dict[j] = i
dict["test string"] = 100
print(dict)
print(dict.keys())
print(typeof(dict.keys()[10]))
print(typeof(str(10)))
print(typeof("10"))
print(dict.has(str(10))) # Should be True if key is a string
print(dict.has("10")) # Should be True if key is a string
print(dict.has('10')) # Should be True if key is a string
print(dict.has(10)) # Should be False if key is a string
Returns this
{0:0, 1:1, 10:10, 11:11, 12:12, 13:13, 14:14, 15:15, 16:16, 17:17, 18:18, 19:19, 2:2, 3:3, 4:4, 5:5, 6:6, 7:7, 8:8, 9:9, test string:100}
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, test string]
4
4
4
True
True
True
False