Please someone explain me this code , the parameter , the syntax , everything . | Sololearn: Learn to code for FREE!
+ 1

Please someone explain me this code , the parameter , the syntax , everything .

the last code i put in the code section of my ptofile .

28th Mar 2017, 4:00 PM
Shru
Shru - avatar
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
28th Mar 2017, 4:35 PM
Meharban Singh
Meharban Singh - avatar
+ 4
Anytime @Shrutidhara Deori
28th Mar 2017, 4:43 PM
Meharban Singh
Meharban Singh - avatar
0
thanks much
28th Mar 2017, 4:42 PM
Shru
Shru - avatar