I need to keep looping this cipher until the input is blank. Please help. TIA
c = input(str())
encrypted = str()
key = 5
for c in c:
if c.isupper():
c_unicode = ord(c)
c_index = ord(c) - ord("A")
new_index = (c_index + key) % 26
new_unicode = new_index + ord("A")
new_character = chr(new_unicode)
encrypted = encrypted + new_character
print(encrypted)
print()