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()
When someone successfully submits an entry, you can automatically send them a confirmation email to let them know. You can customize the email to include any follow-up info you'd like, and you can choose to include a copy of their entry in the email as well. To set up confirmation emails in Form Settings: Log in and go to Forms . Hover over Edit next to the form you want to edit. Choose Edit form . Click the Form Settings tab. Under Confirmation Options, select Send Confirmation Email to User . From the Send To dropdown, select an Email field from your form. We'll send the confirmation email to the email address the person filling out your form entered into this field. If the dropdown says "No Email Fields Found", add an Email field to your form. In the Reply To textbox, enter the reply-to email—if someone replies to their confirmation email, this is the email address that their reply will be s...
Comments
Post a Comment
share your thoughts ....