Why it is showing no output? Is anything wrong | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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
1 Answer
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