Create a Python script to perform the following transformation on a given string?
"HELLO WORLD"
inp_str = "HELLO WORLD"

result_str = ''

for c in inp_str:
    if c.isupper():
        result_str += c.lower()
    else:
        result_str += c.upper()
        
print(result_str)