Can you write a python code that extracts the upper case character from a given string?
Input String: Foobar
input_string = 'Foobar'

upper_case_characters = []

for char in input_string:
    if char.isupper():
        upper_case_characters.append(char)

print(upper_case_characters)