Like matszwecja said your input is a string and not callable.
Also you are trying to execute a string with class.name
in your class a
which is not possible.
If you really want to use classes it would look like this.
class a:
def name(self):
print("option a")
class b:
def name(self):
print("option a")
class c:
def name(self):
print("option a")
choice1 = input("input: ")
if choice1 == "a":
class_a = a()
class_a.name()
However you should use if-statements and/or functions.
solved “str” object is not callable, In Python classes [closed]