removed old non used code
This commit is contained in:
@@ -425,15 +425,3 @@ if __name__ == "__main__":
|
|||||||
print("This value must be one of the following characters: e, n, d, q.")
|
print("This value must be one of the following characters: e, n, d, q.")
|
||||||
client.close()
|
client.close()
|
||||||
sys.exit(0)
|
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")
|
|
||||||
|
|||||||
Reference in New Issue
Block a user