import hashlib def sha512_hash(Password): HashedPassword = hashlib.sha512(Password.encode('utf-8')).hexdigest() return HashedPassword def dropdown_menu(object_input): html = '' def loop(x, count): html = '' for key,value in x.items(): print(' ' * count * 5, key) if type(value) == dict: html += f'
' html += f'{key}' html += loop(x[key], count+1) html += f'
' else: html += f'{key}
' return html count = 0 html += loop(object_input, count) print(html) return html