This is the code:
#swap capitalizations
def swap_cases(word):
for char in word:
if char.upper() == char:
b = char.lower()
print(b)
else:
c = char.upper()
print(c)
This is it's output:
h
I
i
I want it to appear like:
hIi