class Employee:
def __init__(self, first, last):
console.warn(f"__init__('{first}', '{last}')")
if not first:
raise ValueError('Missing first name')
if not last:
raise ValueError('Missing last name')
self.first = first
self.last = last
def get_employee_try():
console.warn('get_employee_try()')
first = input()
print(f"First name: {first}")
last = input()
print(f"Last name: {last}")
try:
return Employee(first, last) # return class
except ValueError as err:
console.warn('except ValueError()')
print(f"Employee(first, last) value error: {err}")
return Employee('First', 'Last')
employee = get_employee_try() # get class
# print(type(employee))
# if employee.first == 'Akio':
# employee.last = 'Kasai'
print(f"Full Name: {employee.first} {employee.last}")