Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Need help with pseuo -bank account using OOP
Post: RE: Need help with pseuo -bank account using OOP

def enter_pin(): while True: pin = int( input("Enter pin "))# keeps asking for the correct pin if pin in data: d = data[pin] while True: return da...
obieze998 General Coding Help 28 14,503 Jul-24-2017, 04:34 PM
    Thread: Need help with pseuo -bank account using OOP
Post: RE: Need help with pseuo -bank account using OOP

the thing is i don't understand how his example can relate to my own code, UPDATE: after re-reading post 12 things are making a little more sense will try again and get back to you.
obieze998 General Coding Help 28 14,503 Jul-24-2017, 10:47 AM
    Thread: Need help with pseuo -bank account using OOP
Post: RE: Need help with pseuo -bank account using OOP

(Jul-23-2017, 11:04 PM)ichabod801 Wrote: return data[pin]Not return True d1 = 0 d2 = 0 d3 = 0 y1 = 0 w1 = 0 pin = 0 class Bank_Account: def pincheck(self, pin): if pin in data: ...
obieze998 General Coding Help 28 14,503 Jul-24-2017, 10:31 AM
    Thread: Need help with pseuo -bank account using OOP
Post: RE: Need help with pseuo -bank account using OOP

then how is it supposed to look like
obieze998 General Coding Help 28 14,503 Jul-23-2017, 08:39 PM
    Thread: Need help with pseuo -bank account using OOP
Post: RE: Need help with pseuo -bank account using OOP

I did and i'm still getting the same issue
obieze998 General Coding Help 28 14,503 Jul-23-2017, 06:55 PM
    Thread: Need help with pseuo -bank account using OOP
Post: RE: Need help with pseuo -bank account using OOP

d1 = 0 d2 = 0 d3 = 0 y1 = 0 w1 = 0 pin = 0 class Bank_Account: def pincheck(self, pin): if pin in data: data[pin] return True else: return False ...
obieze998 General Coding Help 28 14,503 Jul-23-2017, 04:53 PM
    Thread: Need help with pseuo -bank account using OOP
Post: RE: Need help with pseuo -bank account using OOP

(Jul-22-2017, 09:06 PM)ichabod801 Wrote: Again, this is bad format. You are checking each account's pin, requiring you to repeat code and requiring you to add code every time you add an account. Yo...
obieze998 General Coding Help 28 14,503 Jul-23-2017, 09:52 AM
    Thread: Need help with pseuo -bank account using OOP
Post: RE: Need help with pseuo -bank account using OOP

d1 = 0 d2 = 0 d3 = 0 y1 = 0 w1 = 0 pin = 0 class Bank_Account: def pincheck(self, pin): if pin in data: return True else: return False # constructor or in...
obieze998 General Coding Help 28 14,503 Jul-22-2017, 03:49 PM
    Thread: Need help with pseuo -bank account using OOP
Post: RE: Need help with pseuo -bank account using OOP

(Jul-08-2017, 10:42 PM)ichabod801 Wrote: You are still just checking one at a time. That is not going to solve the problem. You need to get the pin from the user, and then find the account that the ...
obieze998 General Coding Help 28 14,503 Jul-08-2017, 11:20 PM
    Thread: Need help with pseuo -bank account using OOP
Post: RE: Need help with pseuo -bank account using OOP

(Jul-08-2017, 08:01 PM)ichabod801 Wrote: Please use python tags, as I requested in my first post. The problem with checking pin1 == pin is that you are only checking one account. You would have to ...
obieze998 General Coding Help 28 14,503 Jul-08-2017, 08:13 PM
    Thread: Need help with pseuo -bank account using OOP
Post: RE: Need help with pseuo -bank account using OOP

(Jul-08-2017, 07:19 PM)ichabod801 Wrote: Sorry, I got my posts mixed up. I thought this was one without any code. data = {'1': 'abcde', '2': '2357', '3': '11235'} while True:    pin = input('pin? ...
obieze998 General Coding Help 28 14,503 Jul-08-2017, 07:28 PM
    Thread: Need help with pseuo -bank account using OOP
Post: RE: Need help with pseuo -bank account using OOP

(Jul-08-2017, 06:59 PM)ichabod801 Wrote: (Jul-08-2017, 05:54 PM)obieze998 Wrote: can you you show me how to do that in my code please That's not how we do things around here. The way it works is t...
obieze998 General Coding Help 28 14,503 Jul-08-2017, 07:03 PM
    Thread: Need help with pseuo -bank account using OOP
Post: RE: Need help with pseuo -bank account using OOP

(Jul-08-2017, 05:18 PM)ichabod801 Wrote: Please use python tags, I added them for you. See the BBCode tutorial link in my signature for more info. First of all, the code after the class definition s...
obieze998 General Coding Help 28 14,503 Jul-08-2017, 05:54 PM
    Thread: Need help with pseuo -bank account using OOP
Post: Need help with pseuo -bank account using OOP

Can someone please help me i'm creating a code for an imitated bank account, what i'm trying to get it to is to basically display the name of the account holder and their current balance when a pre-d...
obieze998 General Coding Help 28 14,503 Jul-08-2017, 05:09 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020