I put together a small test code just to demonstrate the error I am getting when trying to enter a class with input. Nothing pretty or good its just to get the specific error across.
Code:
class people(object):
def deposit():
print("depositing")
def withdraw():
print("withdrawing")
John = people()
selection = input("Type John: ")
selection.deposit
Error:
[evaluate classes.py]
Type John: John
Traceback (most recent call last):
File "c:\Users\Peter\Desktop\Desktop 2\Python\classes.py", line 9, in module
selection.deposit
builtins.AttributeError: 'str' object has no attribute 'deposit'