+ 1

Why it is showing no output? Is anything wrong

https://code.sololearn.com/cl5Mm0M2jAi6/?ref=app

27th Mar 2020, 6:37 AM
PRADEEP KUMAR JAISWAL
2 Answers
0
you just created a class, you must use it outside of the class body. bankc = bankaccount() bankc.createAccount() print(bankc.accNo) but I think that's it's better to use the __init__ method to do initialisations. And as accNo is an Integer, use "int(input("Please! Enter your IFSC number: "))" instead.
27th Mar 2020, 6:55 AM
John Robotane
John Robotane - avatar