I feel like I'm missing something, I'm quite new to Python and I have a questionnaire which essentially asks the user to input the same type of information numerous times, but I obviously cannot use mutation since it is not allowed in Python (of which I might be wrong). If I have say 5 'refNames' it seems too repetitive, now is there a function that I could define that will clear the previous refName input?
refName_1, refSurname_1 = input('Who is your first reference: ').split()
refNames_1 = '{} {}'.format(refName_1.capitalize(), refSurname_1.capitalize())
refName_2, refSurname_2 = input('Who is your second reference: ').split()
refNames_2 = '{} {}'.format(refName_2.capitalize(), refSurname_2.capitalize())
print(refName_1)
print(refName_2)