0
See the description
OK I will tell you my whole code and problem, I have made a class "Bank" which have 5 method and three arguments named "name,accountNum, balance". I want to extract a string from a text file, the string is extracted but the main problem is that I want to pass the extracted string as an "argument of class "named balance but not able to pass. f=Bank(name=ii2,accountNum=ii,balance=Bank.init_bal()) I want to set the extracted string as balance value
3 odpowiedzi
0
Hello, it's difficult to understand what you mean without the code, could you put it into CodePlayground and link to it here?
0
I thing you need to use parameters
You not describe properly
But what I understand is that
You want to give class attributes values from outside
Revise something about parameters
0
here is my code :read line no 98
https://code.sololearn.com/c8tvzUvs78Qq/#py