Please look at the formatting tips, it will help you display your code as you wish.
that said, I think this is what you want.
The following code will iterate through each character in your list string.
If it finds a match, it will print success
list = "9876554321"
for char in list:
if char == "9":
print("Success')
2
solved Python Error with iteration, for loop