A snippet of my code:
def determinewelltype(currentuwi,welltype):
if current uwi in vertuwis:
welltype = "Vertical"
currentuwi = "1aa010109306w400"
welltype = "UNKNOWN"
determinewelltype(currentuwi,welltype)
print currentuwi,welltype
In another part of my code, I have built a list called vertuwis that consists of a number of strings.
This snippet is trying to determine if the currentuwi is in the list of vertuwis. If it is, the welltype should be vertical.
I know that the given currentuwi is in my list, but when I print the welltype in the last line of code, the well type is UNKNOWN, meaning that my code doesn't work.
Where have I gone wrong?