SyntaxFix
Write A Post
Hire A Developer
Questions
Consider using a dictionary:
myDict = {} for i in range(20): myDict[i] = i * i print(5 in myDict)