Relative Content

Tag Archive for pythonloops

how do i fix this kind of error, unboundLocalError

def address(): inputName = input(“Enter Name: “) inputAddress = input(“Enter address: “) return inputName return inputAddress def nextPerson(): next = input(“Next Person to register? type Yes or No: “) if next == “yes”: address = inputAddress() name = inputName() nextPerson() else: pass this should get the user inputs name and address and display inputs. if […]