I'm making a text based game in python and want to check how many trees are in the field that i'm in.
I'm running the latest Python (3.7.1) (Not using IDLE it is just named Python3.7.1.exe and it looks like CMD) I'm trying to use variables like this but it is saying that I can't compare strings to integers (but how do I turn strings into "variable text"?).
trees_A1 = random.randint(…)
trees_A2 = random.randint(…)
…
Field = A3
if "trees_"+Field > 0
I expected it to compare trees_A3 but just sees the string trees_A3.