July project night/OO lesson/mainProgram.py

import banking

theBank = banking.Bank userAnna = banking.User("Anna","myPassword") print "Main program created the user " + userAnna.username

isLoggedIn = theBank.logIn(userAnna.username, userAnna.password) if isLoggedIn: accountAnna = banking.Account(userAnna) print "Main program created an account for " + accountAnna.user.username accountAnna.addMoney(10)