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

22nd Jul 2019, 1:53 PM
𝖆𝖙.𝖚𝕷
𝖆𝖙.𝖚𝕷 - avatar
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?
22nd Jul 2019, 2:00 PM
Rincewind
Rincewind - avatar
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
22nd Jul 2019, 2:10 PM
Saad Saleem
Saad Saleem - avatar
0
here is my code :read line no 98 https://code.sololearn.com/c8tvzUvs78Qq/#py
22nd Jul 2019, 2:51 PM
𝖆𝖙.𝖚𝕷
𝖆𝖙.𝖚𝕷 - avatar