I try to check if string s contain any alphanumeric characters using the following code:
s = input()
bool1 = False
while bool1 == False:
for i in list(s):
bool1 = i.isalnum()
print(bool1)
But it resulted in runtime error.
Why is this happening?