+ 1
Please someone explain me this code , the parameter , the syntax , everything .
the last code i put in the code section of my ptofile .
3 Answers
+ 4
python works on the basis of indents, and Just remember a class/method cant be executed unless you print/use it.
In your program, the fifth last line executes first,and then goes to the class to cretae a new pbject 'john smith'. Then fourth last line is executed ,going back to showbalance method.It gets executed next.Going on to third last line,depost is executed with 2000 as parameter.Next second last line to withdraw method. And finally last tp to show balance mthod again
+ 4
Anytime @Shrutidhara Deori
0
thanks much