I am trying to read data in from a file in python and compare it to see if it matches some of the information. I have this
with open("data.dat", "r") as f: #read data in from the file
for line in f:
if line is "Static": #this adds the data for the static attack
When I read the data in from my file, it skips right over it. I am at a loss why.
Here is my data.dat file.
Static
0 10
1 50