stupid indents

This commit is contained in:
crp3844
2022-09-07 08:35:05 -04:00
parent 710359b324
commit 469c838447

View File

@@ -349,14 +349,14 @@ if __name__ == "__main__":
client.close()
sys.exit(0)
print("Which account would you like to edit:")
for i in range(0, len(accounts)):
pretty_number = i + 1
print("{}) {}".format(pretty_number, accounts[i]))
while True:
account_to_edit = int(input("Please enter number relating to the account you wish to edit: ")) - 1
try:
print("selected account: {}".format(accounts[account_to_edit]))
break
except IndexError as error:
print("you entered a number out of range, please try again")
print("Which account would you like to edit:")
for i in range(0, len(accounts)):
pretty_number = i + 1
print("{}) {}".format(pretty_number, accounts[i]))
while True:
account_to_edit = int(input("Please enter number relating to the account you wish to edit: ")) - 1
try:
print("selected account: {}".format(accounts[account_to_edit]))
break
except IndexError as error:
print("you entered a number out of range, please try again")