Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # -*- coding: cp1252 -*-
- # Date Created: 21/04/2015
- # Author: Kyle Minto
- # Barclays Bank
- print("************************");
- print("Welcome to Barclays Bank");
- print("************************\n");
- def runBank():
- balance = 100;
- print("Your balance is £" + str(balance));
- required = input("Enter amount required: ");
- if(required > balance):
- print("\nSorry, you have insufficient funds");
- another = raw_input("Would you like another amount?");
- if(another == "yes" or another == "Yes"):
- print("\n");
- runBank();
- else:
- print("Your balance is now £" + str(balance - required));
- runBank();
Add Comment
Please, Sign In to add comment