# ATM Programme
# Created on: 21 July 2016 1:45:15UTC+0000
# Created by: Elliott Brown (EBrown)
# File: main.py
def format_message(pre_msg, opts, post_msg):
result = ""
result += "--------------------------------------------------------------------------------\r\n\r\n"
result += " " + pre_msg + "\r\n"
result += " Please select an option: \r\n"
for key, value in opts.items():
result += " [ {} ] {}\r\n".format(key, value)
return result
print format_message("Welcome to the Bank!", {1: "View Checking Account", 2: "View Savings Account", 3: "Transver Funds", 4: "Wi…