from time import gmtime, strftime class Accounts: type='VERSION 1.0' def __init__(self,name,balance): self.name=name self.transtime=[] self.trans=[] self.trantype=[] self.balance=balance print "Account Created for ",self.name,"With Opening balance =",self.balance def withdraw(self,amount): if self.balance-amount>0: print "Amount withdrawn=",amount self.balance-=amount self.trans.append(amount) self.trantype.append("Withdraw") self.transtime.append(str(strftime("%a, %d %b %Y %H:%M:%S ", gmtime()))) else : print "InSufficient balance" def deposit(self,amount): if amount>0: self.balance+=amount self.trans.append(amount) self.trantype.append("Deposit") self.transtime.append(str(strftime("%a, %d %b %Y %H:%M:%S ", gmtime()))) else : print "Invalid amount " def showbal(self): print'*'*50 print "Account of =",self.name print "Account balance=",self.balance print'*'*50 def transactions(self): print'*'*50 print "Account of =",self.name print '\tAMOUNT\t\tTYPE\tTIME' for i in range (len(self.trans)): print'-'*80 print "\t",self.trans[i],"\t\t",self.trantype[i],self.transtime[i] print'-'*80 print ("Entering in Program") raj=Accounts("Raj Dubey",100) raj.showbal() raj.deposit(3000) raj.showbal() raj.withdraw(1200) raj.showbal() raj.deposit(564) raj.showbal() raj.transactions() mansur=Accounts("Mansur Alam",1) mansur.showbal() mansur.deposit(3000) mansur.withdraw(564) mansur.transactions()
QWERTY QWERTY / ˈ k w ɜr t i / is the most common modern-day keyboard layout . The name comes from the first six keys appearing on the top left letter row of the keyboard and read from left to right: Q-W-E-R-T-Y. The QWERTY design is based on a layout created for the Sholes and Glidden typewriter and sold to Remington in 1873. It became popular with the success of the Remington No. 2 of 1878, and remains in use on electronic keyboards due to the network effect of a standard layout and a belief that alternatives fail to provide very significant advantages. [ 1 ] The use and adoption of the QWERTY keyboard is often viewed as one of the most important case studies in open standards because of the widespread, collective adoption and use of the product. [ 2 ] History and purposes [ edit ] Keys are arranged on diagonal columns, to give space for the levers. Main article: Sh...
Comments
Post a Comment
share your thoughts ....