I several variables named S1 - S6 and I want to be able to loop through each of them so I can do some string comparisons and manipution on them but I cant work out how to do it
allSeats = "1"
for x in "S" + allSeats:
print(x)
allSeats = allSeats + 1
So I want that print(x) to do is essectially just print the string stored in the variable S1 for example. Hope that makes sense I dont really know how to explain it