+ 1
Why it is showing no output? Is anything wrong
2 Respostas
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.