I am getting an problem that usr_inp is a string.
class Student:
def __init__(self,name):
self.name = name
def greet(self):
return "Hello " + str(self.name)
justin = Student("Justin")
eva = Student("Eva")
usr_inp = input("Enter your name : ")
if usr_inp == "justin" or "eva":
print(usr_inp.greet())
So I know how to fix the problem here, there are other several ways but I want a way to change the usr_inp the variable used above. Help me